Scabard needs to authenticate that your users have granted your app access to their campaigns.
Your app will need to pass the username of your user, along with their API access key as headers for each request.
To test from the command line, use curl with the -H option:
curl -X GET https://www.scabard.com/api/v0/campaign/121/event -H "username: stolph" -H "accessKey: 8301789723432159092"
The user's access key expires 24 hr after it is generated. Prompt your user to get another one if it expires.
Apps that use the API
Foundry Module: Scabard Connect
by professorx00
GET https://www.scabard.com/api/v0/campaign
GET https://www.scabard.com/api/v0/campaign/[campaign_id]
GET https://www.scabard.com/api/v0/campaign/[campaign_id]/[concept]
GET https://www.scabard.com/api/v0/campaign/[campaign_id]/[concept]/[thing_id]
Returns details of a specific page in the GM's campaign (under 'main').
Coming soon: Plus a summary of pages it's connected to (under 'conns').
curl -X POST https://www.scabard.com/api/v0/campaign/[campaign_id]/[concept]/[thing_id] -H "username: stolph" -H "accessKey: 8301789723432159092" -d 'name=The Milky Way' -d 'briefSummary=From POST Scabard API 3b' -d 'concept=Vehicle'
Returns isSuccess: true or false
curl -X POST https://www.scabard.com/api/v0/campaign/[campaign_id]/[concept]/[thing_id] -H "username: stolph" -H "accessKey: 8301789723432159092" -H "content-type: application/json" -d '{"briefSummary":"Dwarven god of greed","isSecret":"false","description":"blah blah","secrets": " ", "gmSecrets": "Just secrets", "name": "Abbathor","concept": "Character"}'