Writing to a 3rd party API
I am working in an asp.net application trying to write a JSON.Net query to
write (POST) a record to an API. However, I am having trouble trying to
figure out how to format the json string in order to pass it to the API.
The "Example" on the vendor's support page has the following header
information.
POST /extact/api/profiles/114226/pages/423833/records HTTP/1.1
Host: server.iPadDataForm.com
Authorization: Bearer 6bfd44fbdcdddc11a88f8274dc38b5c6f0e5121b
Content-Type: application/json
X-IFORM-API-REQUEST-ENCODING: JSON
X-IFORM-API-VERSION: 1.1
Question:
If I am using JSON.Net, how do I get the header information passed to the
API ? I have looked at json.net website, but nothing has worked yet.
No comments:
Post a Comment