Code Examples

This section provides code examples for using the Advance API.  

Code Examples (C#)

Authorization

Examples for retrieving access tokens to sign your requests to the Advance API

API Requests

Requests to the Advance API to create, update, or delete resources.

 

Note on HttpClient vs RestClient

The examples use HttpClient. Consulting queried whether a RestClient could be used. Answer:

They should use HttpClient, it handles the encoding of data properly. For example they have code that chops off the first byte of answerxml with their restclient code. Whereas HttpClient handles that correctly. Ultimately our API doesn't know or care what is being used to call it. So anything will work.
But I've seen how RestClient gets used and HttpClient is hopefully safer for them.