Skip to content

Instantly share code, notes, and snippets.

@inlinestyle
Created March 8, 2017 22:18
Show Gist options
  • Save inlinestyle/e0d6ab0a754411566d046f45040c89db to your computer and use it in GitHub Desktop.
Save inlinestyle/e0d6ab0a754411566d046f45040c89db to your computer and use it in GitHub Desktop.
BEARER='authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWlkIjoiQlUxMTEwMTAwMDAxMTAwODc0MSIsIm1haWQiOiJNQTExMTAxMDAwMDExMDA4NzM3Iiwic3ViZCI6InRlc3Rmb3JjZSIsInVzZXJfaWQiOiJhdXRoMHxCVTExMTAxMDAwMDExMDA4NzQxIiwiZW1haWwiOiJ0ZXN0Zm9yY2VAYml6b2RvLmNvbSIsIm5hbWUiOiJGb3JjZSBBd2FrZW5zIiwiaXNzIjoiaHR0cHM6Ly9zZWFtbGVzc2RvY3NkZXYuYXV0aDAuY29tLyIsInN1YiI6ImF1dGgwfEJVMTExMDEwMDAwMTEwMDg3NDEiLCJhdWQiOiJHRk54dWhSa0sweDRwbkVocmJSbzkzUDBCNDBBdlFmMyIsImV4cCI6MTQ4OTAyMzQ0MiwiaWF0IjoxNDg4OTg3NDQyfQ.DbcKYHvjp3GPM0hIO2vsScqJ7eXB26GWmkUUPMRVgVw'
USER_AGENT='user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36'
# curl 'http://localhost:9000/selectors/forms/replace.json' -H 'origin: https://localhost:3000' -H 'accept-encoding: gzip, deflate, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H "$BEARER" -H 'content-type: application/json' -H 'accept: */*' -H 'referer: https://localhost:3000/ng/lobby' -H 'authority: backend.stage.seamlessdocs.com' -H "$USER_AGENT" --data-binary '{"oldSelector":{"selectorType":"I/SD/FORMS/CONDITIONAL_NOTIFY", "value": "CO17031000010326026"},"newMetadata":[],"credentials":{"uid":"BU11101000011008741","maid":"MA11101000011008737"}}' --compressed
# curl 'http://localhost:9000/selectors/forms/insert.json' -H 'origin: https://localhost:3000' -H 'accept-encoding: gzip, deflate, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H "$BEARER" -H 'content-type: application/json' -H 'accept: */*' -H 'referer: https://localhost:3000/ng/lobby' -H 'authority: backend.stage.seamlessdocs.com' -H "$USER_AGENT" --data-binary '{"selector":{"selectorType":"I/SD/FORMS/CONDITIONAL_NOTIFY", "value": "ar"},"credentials":{"uid":"BU11101000011008741","maid":"MA11101000011008737"}}' --compressed
# curl 'http://localhost:9000/selectors/forms/valuesByType.json' -H 'origin: https://localhost:3000' -H 'accept-encoding: gzip, deflate, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H "$BEARER" -H 'content-type: application/json' -H 'accept: */*' -H 'referer: https://localhost:3000/ng/lobby' -H 'authority: backend.stage.seamlessdocs.com' -H "$USER_AGENT" --data-binary '{"selectorType":"I/SD/FORMS/CONDITIONAL_NOTIFY", "values": ["basdfadf"],"credentials":{"uid":"BU11101000011008741","maid":"MA11101000011008737"}}' --compressed
# curl 'http://localhost:9000/selectors/forms/associate.json' -H 'origin: https://localhost:3000' -H 'accept-encoding: gzip, deflate, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H "$BEARER" -H 'content-type: application/json' -H 'accept: */*' -H 'referer: https://localhost:3000/ng/lobby' -H 'authority: backend.stage.seamlessdocs.com' -H "$USER_AGENT" --data-binary '{"selector": {"selectorType":"I/SD/FORMS/CONDITIONAL_NOTIFY", "value": "sasar"}, "formId": "CO17031000010325293","credentials":{"uid":"BU11101000011008741","maid":"MA11101000011008737"}}' --compressed
curl 'http://localhost:9000/selectors/forms/delete.json' -H 'origin: https://localhost:3000' -H 'accept-encoding: gzip, deflate, br' -H 'x-requested-with: XMLHttpRequest' -H 'accept-language: en-US,en;q=0.8' -H "$BEARER" -H 'content-type: application/json' -H 'accept: */*' -H 'referer: https://localhost:3000/ng/lobby' -H 'authority: backend.stage.seamlessdocs.com' -H "$USER_AGENT" --data-binary '{"selector":{"selectorType":"I/SD/FORMS/CONDITIONAL_NOTIFY", "value": "CO17031000010326026"},"credentials":{"uid":"BU11101000011008741","maid":"MA11101000011008737"}}' --compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment