Skip to content

Instantly share code, notes, and snippets.

@EricWarnke
Created November 1, 2012 05:18
Show Gist options
  • Save EricWarnke/3992000 to your computer and use it in GitHub Desktop.
Save EricWarnke/3992000 to your computer and use it in GitHub Desktop.
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"}'
{
"id" : "lzdyvexxrfxup1xropjbhseegn1dbwwn",
"redirect_url" : "http://api.mover.io/authorize?app_id=t8ymgqh9priglcusk3fqy7wzyqibg7mp&uid=lzdyvexxrfxup1xropjbhseegn1dbwwn"
}
$ curl --version curl 7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM NTLM_WB SSL libz
curl https://api.mover.io/connectors/lzdyvexxrfxup1xropjbhseegn1dbwwn/collections \
-X GET \
-H "Authorization: MoverAPI app_id=<app_id> app_secret=<app_secret>"
{
"id" : "Lw9dk4cJDhnd9d22",
"type" : "folder",
"name" : "",
"parent_id" : null,
"writable" : true,
"contents" : [ {
"id" : "L0NhdCBQaWN0dXJlcw",
"name" : "Cat Pictures",
"type" : "folder",
"size" : -1
},
{
"id" : "L0dldHRpbmcgU3RhcnRlZC5wZGY",
"name" : "Getting Started.pdf",
"type" : "file",
"size" : 246000
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment