I am implementing a jira api call: Add an observer to the JIRA problem.
A parameter is required Stringinstead JSON.
String
JSON
I am using python queries .
requests.post(url, headers=headers, json=data)
What should be my data value if in the jira documentation I only need to pass String, but the method requests.postaccepts only JSON?
requests.post
Just do:
requests.post(url, headers=headers, data=data)
In accordance with official documents :
, , . string dict, .
string
dict
Source: https://habr.com/ru/post/1675077/More articles:Why does https.Agent throw a parsing error when proxing through node-http-proxy? - javascriptHow to compile Swift from a command line for distribution - swiftAngular 2 Testing a component with observable, no bullying - angularWhy doesn't abbreviation print the first value? - javascriptПочему тензорный поток использует менее 20% GEFORCE 1080 ti (11 ГБ)? - tensorflowMigrating images in a tensor stream, changing a simple softmax layer to multilayer CNN - pythonConvert Leaflet LatLng for overlaying x, y pixel images - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1675080/swift-3-function-in-protocol-that-return-object-of-class-that-conforms-to-a-protocol&usg=ALkJrhiR6W0wvlSax7ayCM7QTVBlAPtTaQAngular 2: simple input validation - javascriptAuthentication as an anonymous user - authenticationAll Articles