-
Notifications
You must be signed in to change notification settings - Fork 0
/
.byebug_history
126 lines (126 loc) · 2.07 KB
/
.byebug_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
c
timestamp
c
url
c
url
c
responsec\
response
c
response.body
response.code
c
response.body
response.inspect
response.code
response
c
AccessToken.all
token
c
AccessToken.create!
AccessToken.all
AccessToken.destroy_all
AccessToken.all
Mpesa.all
AccessToken.token
AccessTokens
AccessToken
body
body = JSON.parse(res, symbolize_names: true)
res.body
res.code
res.inspect
res
c
@access_token
@consumer_secret
@consumer_key
@url
c
res.body
res.status
re.status
res
c
res
c
JSON.parse(payload)['BusinessShortCode']
JSON.parse(payload)
JSON.generate?(payload)
JSON.generate(payload)
JSON.parse(payload)
payload.to_json
payload.BusinessShortCode
payload[:'BusinessShortCode']
payload['BusinessShortCode']
payload
c
payload
c
require 'byebug'
require 'byebug
require 'rest-client'
require 'rest-client' = true
require 'rest-client'
c
response
c
response = RestClient::Request.execute(method: :post, url: url, payload: payload, headers: headers)
response
c
headers
c
}
Authorization: "Basic #{get_access_token}"
content_type: "application/json",
headers = {
}
Authorization: "Basic #{get_access_token}"
content_type: "application/json",
headers = {
}
Authorization: "Basic #{get_access_token}"
content_type: "application/json",
headers = {
get_access_token
headers
payload
c
get_access_token
c
generate_access_token_request.code
generate_access_token_request.coe
generate_access_token_request
get_access_token
c
generate_access_token_request.to_json.gsub("")
generate_access_token_request.to_json
generate_access_token_request.response_code
generate_access_token_request
generate_access_token_request.response
generate_access_token_request.status
generate_access_token_request
res
generate_access_token_request["access_token"]
generate_access_token_request[":access_token"]
generate_access_token_request[:"access_token"]
generate_access_token_request["access_token"]
generate_access_token_request[:access_token]
generate_access_token_request
c
generate_access_token_request
generate_access_token
c
body
get_access_token
c
get_access_token
c
payload
c
ENV["QUERY_URL"]
ENV
payload
c