We recommend using Postman client for testing your REST calls (https://www.getpostman.com/).
Once this is installed, download and import the JustGiving collections from github (https://github.com/JustGiving/JustGiving.Api.Tools.Postman). There is a wiki on the page to explain how to use Postman with different environments. The documentation has not yet been updated to include the use of a Bearer Authorization header. To use a Bearer token, change the value of the Authorization Header from "Basic basicAuth
" to "Bearer yourGeneratedToken" and replace yourGeneratedToken with the token retrieved from the Resource Server.
Example request:
GEThttps://api.justgiving.com/v1/account
Accept: application/json
Authorization: Bearer {your token}
x-api-key: {your Application Id}
x-application-key : {your secret key }
0 Comments