/
Code examples
Code examples
Included in this page are a few examples showing a couple of different usages of the API. These examples require the freely available LINQPad program version 4.47.03 or above in order to view or execute the sample script. In addition, for the API you're communicating with, you will require a valid API user account. Such an account can be obtained from the owner of site.
Table 1 Example
Category | Description | Download Link |
Authentication | An example of authenticating and executing a authenticated call using the header method. | |
Authentication | A more advanced example of authenticating and executing a authenticated call using the header method. | ApiExample_AuthenticationUsingHeaderMethodAdvanced.linq |
Authentication | An example of authenticating and executing a authenticated call using the cookie method. | |
Animals | An example of getting a single animal available for adoption per Australian state. | ApiExample_SingleAdoptionAnimalPerAustralianStateSample.linq |
Animals | An example the lists ten animal available for adoption for a state located in the US. | ApiExample_TenAdoptionAnimalsForAUsStateSample.linq |
, multiple selections available,
Related content
Authentication /api/authenticate
Authentication /api/authenticate
Read with this
FAQ / Common Issues
FAQ / Common Issues
More like this
Code Samples
Code Samples
More like this
Animals /api/animals
Animals /api/animals
More like this
Animals
Animals
More like this
Animal Statuses /api/animalStatuses
Animal Statuses /api/animalStatuses
More like this