Skip to content

Instantly share code, notes, and snippets.

View EricWarnke's full-sized avatar
🙇‍♂️
Praying to the GitHub gods

Eric Warnke EricWarnke

🙇‍♂️
Praying to the GitHub gods
View GitHub Profile
@EricWarnke
EricWarnke / mover-io-json-response-example.json
Created October 31, 2012 18:17
This code displays a sample response from a collection listing request.
{
"id" : "Lw9dk4cJDhnd9d22",
"type" : "folder",
"name" : "",
"parent_id" : null,
"writable" : true,
"contents" : [
{
"id" : "L0NhdCBQaWN0dXJlcw",
"name" : "Cat Pictures",
$ curl https://api.mover.io/connectors \
-X POST \
-H "Authorization: MoverAPI app_id=<app_id> app_secret=<app_secret>" \
-H "Content-Type: application/json" \
-d '{"type" : "Dropbox"}'
{
"type" : "error",
"status" : 404,
"code" : "not_found",
"help_url" : "",
"message" : "Folder not found",
"request_id" : "7522414694f97d171b6aea"
}
curl https://api.mover.io/connectors \
-X POST \
-H "Authorization: MoverAPI app_id=<app_id> app_secret=<app_secret>" \
-H "Content-Type: application/json" \
-d '{"type" : "Dropbox"}'
curl https://api.mover.io/connectors \
-X GET \
-H "Authorization: MoverAPI app_id=2tsc0f9n9l4v209oara0mb2j5ur9my8v app_secret=65oow347p1q7d0loj45oje2u3sol99xd"
curl https://api.mover.io/connectors \
-X POST \
-H "Authorization: MoverAPI app_id=2tsc0f9n9l4v209oara0mb2j5ur9my8v app_secret=65oow347p1q7d0loj45oje2u3sol99xd" \
-d '{"type" : "Dropbox"}'
curl https://api.mover.io/connectors/AOG06La095potw9672ygbFHG \
-X GET \
-H "Authorization: MoverAPI app_id=2tsc0f9n9l4v209oara0mb2j5ur9my8v app_secret=65oow347p1q7d0loj45oje2u3sol99xd"
curl https://api.mover.io/connectors/AOG06La095potw9672ygbFHG \
-X DELETE \
-H "Authorization: MoverAPI app_id=2tsc0f9n9l4v209oara0mb2j5ur9my8v app_secret=65oow347p1q7d0loj45oje2u3sol99xd"
@EricWarnke
EricWarnke / request.sh
Created November 1, 2012 22:40
http://mover.io/docs#connectors - Available Types of Connectors
curl https://api.mover.io/connectors/available \
-X GET
{
"id" : "Has397ftbwASD96aHgoEagS",
"type" : "Dropbox",
"authorized" : true
}