Magpie.Check (Magpie v0.1.0)

Copy Markdown View Source

Endpoints of the Dropbox check namespace, useful to validate credentials.

Summary

Functions

Checks that the app key/secret pair is valid. This endpoint uses app authentication (basic auth), so it takes the credentials instead of a client.

Checks that the user access token works; Dropbox echoes query back.

Functions

app(app_key, app_secret, query \\ "ping")

Checks that the app key/secret pair is valid. This endpoint uses app authentication (basic auth), so it takes the credentials instead of a client.

More info at: https://www.dropbox.com/developers/documentation/http/documentation#check-app

user(client, query \\ "ping")

Checks that the user access token works; Dropbox echoes query back.

More info at: https://www.dropbox.com/developers/documentation/http/documentation#check-user