Skip to content

Commit abfb462

Browse files
authored
Modifying README
1 parent 4247f9d commit abfb462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ oauth = OAuth1RSA(consumer_key, signing_key)
123123
header = {'Content-type' : 'application/json', 'Accept' : 'application/json'}
124124

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

129129
# Passing payload for data parameter as Json object
@@ -132,7 +132,7 @@ request = requests.post(uri, data=json.dumps(payload), auth=oauth, headers=heade
132132

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

138138
###### GET example

0 commit comments

Comments
 (0)