-
-
Save shadowcodex/f16168ad75b257760233c60517f9a378 to your computer and use it in GitHub Desktop.
Bildr API Calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
asdf | |
<script src="https://gist.github.com/shadowcodex/f16168ad75b257760233c60517f9a378.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
################################################## | |
############# API Calls | |
################################################## | |
################################################## | |
## Login | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/user/authenticate' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
-XPOST \ | |
--data-raw '{"loginID":"test2@example.com","password":"asdf"}' | |
## Get Collection of Records - Users | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/record/get/mMmgDOBSWE6bzmyZxyO31g' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
-XPOST\ | |
--data-raw '{"fldsIDs":"*,deleted,id","parentId":null,"filters":"","type":"records","groupID":0,"projectID":"t6fae7gjhkiA8KdOTF9L8g","revisionID":"1jqjoVh2gkKlY6oTHkflog"}' | |
## Update Record - Users | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/record/save/mMmgDOBSWE6bzmyZxyO31g' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
--data-raw '{"recs":[{"id":"SMiPRmaJd0y8umNPHhrHew","Ynrt7zG3u0afdJcHi5AjCA":"23qt2234f"}],"groupID":"JAvBxM6cnEWoHhWyaCPFGA","bildrSocketID":"p6p5zbw6$kKHTYKLFFZhow","fltSetIsSelected":0,"revisionID":"1jqjoVh2gkKlY6oTHkflog","projectID":"t6fae7gjhkiA8KdOTF9L8g"}' \ | |
--compressed | |
## Create Record - Test | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/record/save/7fUB7kbcUkKCZCTNybvecg' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
--data-raw '{"recs":[{"QSVV4ACmCEKP5LBGAWkNAw":"asdf","id":"0"}],"groupID":"PXzoNPMzHESABqfCKenHeg","bildrSocketID":"CBzsGZzKwkiWLzTCHurMaw","fltSetIsSelected":0,"revisionID":"1jqjoVh2gkKlY6oTHkflog","projectID":"t6fae7gjhkiA8KdOTF9L8g"}' \ | |
--compressed | |
## Read Records - Test | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/record/get/7fUB7kbcUkKCZCTNybvecg' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
-XPOST\ | |
--data-raw '{"fldsIDs":"*,deleted,id","parentId":null,"filters":"","type":"records","groupID":"PXzoNPMzHESABqfCKenHeg","projectID":"t6fae7gjhkiA8KdOTF9L8g","revisionID":"1jqjoVh2gkKlY6oTHkflog"}' | |
## Update Record | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/record/save/7fUB7kbcUkKCZCTNybvecg' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
--data-raw '{"recs":[{"id":"1aK0E4u1Lk2xs4yItTjnzw","QSVV4ACmCEKP5LBGAWkNAw":"updated from API"}],"groupID":"PXzoNPMzHESABqfCKenHeg","bildrSocketID":"p6p5zbw6$kKHTYKLFFZhow","fltSetIsSelected":0,"revisionID":"1jqjoVh2gkKlY6oTHkflog","projectID":"t6fae7gjhkiA8KdOTF9L8g"}' \ | |
--compressed | |
## Delete Record | |
curl 'https://p7bdaa7b723b8488680f0a74e4c5f4bf2.bildr.com/_/record/save/7fUB7kbcUkKCZCTNybvecg' \ | |
-H 'content-type: application/json' \ | |
-H 'accept: */*' \ | |
--data-raw '{"recs":[{"id":"1aK0E4u1Lk2xs4yItTjnzw","deleted":2}],"groupID":"PXzoNPMzHESABqfCKenHeg","bildrSocketID":"p6p5zbw6","fltSetIsSelected":0,"revisionID":"1jqjoVh2gkKlY6oTHkflog","projectID":"t6fae7gjhkiA8KdOTF9L8g"}' \ | |
--compressed | |
## IF auth Needed | |
# Add following cookie header | |
-H 'cookie: access_token=Bearer%20ZmRlNDVkN2UyYmMxOTQ5ZDQxNzc2Y2E3NzlkOTQxZDk5ZDA3ZDkzOWQ3MzM5M2ZmYTRjYjI5NTBiMGNkMmZhNw%3D%3D; xsrf_token= NXJTTTZOaXdTeUZKSzVRQXlMcTlBSUF1ZytjPQ%3D%3D; expires_in=2592000;' \ | |
{"name":"Authentication.IdentityServer","description":{},"status":0,"message":"Authentication Succeded. You are signed in.","obj":{"access_token":"ZmRlNDVkN2UyYmMxOTQ5ZDQxNzc2Y2E3NzlkOTQxZDk5ZDA3ZDkzOWQ3MzM5M2ZmYTRjYjI5NTBiMGNkMmZhNw==","expires_in":2592000,"token_type":"Bearer","xsrf_token":"NXJTTTZOaXdTeUZKSzVRQXlMcTlBSUF1ZytjPQ=="},"debug":"","log":{}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment