Skip to content

Commit 9b75ff9

Browse files
authored
Update README.md
1 parent d07f4f4 commit 9b75ff9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ header = {'Content-type' : 'application/json', 'Accept' : 'application/json'}
125125

126126
# Passing payload for data parameter as string
127127
payload = '{"key" : "value"}'
128-
request = requests.post(uri, data=payload, auth=oauth, headers=header)
128+
response = requests.post(uri, data=payload, auth=oauth, headers=header)
129129

130130
# Passing payload for data parameter as Json object
131131
payload = {'key' : 'value'}
132-
request = requests.post(uri, data=json.dumps(payload), auth=oauth, headers=header)
132+
response = requests.post(uri, data=json.dumps(payload), auth=oauth, headers=header)
133133

134134
# Passing payload for json parameter Json object
135135
payload = {'key' : 'value'}
136-
request = requests.post(uri, json=payload, auth=oauth, headers=header)
136+
response = requests.post(uri, json=payload, auth=oauth, headers=header)
137137
```
138138

139139
###### GET example
@@ -146,7 +146,7 @@ uri = 'https://sandbox.api.mastercard.com/service'
146146
oauth = OAuth1RSA(consumer_key, signing_key)
147147

148148
# Operation for get call
149-
request = requests.get(uri, auth=oauth)
149+
response = requests.get(uri, auth=oauth)
150150
```
151151

152152
### Integrating with OpenAPI Generator API Client Libraries <a name="integrating-with-openapi-generator-api-client-libraries"></a>

0 commit comments

Comments
 (0)