ShiftMyData

Apps, the API and integrations

The phone apps, the command line, the browser extension, n8n and Zapier, and the public API they all use -- with webhooks and trigger URLs.

In this chapter

The phone apps

ShiftMyData for Android and for iPhone and iPad show your clouds, folders, transfers and schedules. Sign in with Sign in: it opens shiftmydata.com, where you allow the app. The app never sees your password.

Seeing and removing connected apps

Developers, under Account, lists every app that can use your account -- the phone apps, the command line, the extension, n8n, Zapier and apps other people made -- with what each may do and when it was last used. Disconnect ends an app's access on every device at once.

The command line

Install it with pipx install shiftmydata, then run shiftmydata login: it shows a short code and opens shiftmydata.com, where you check the code and allow it.

shiftmydata ls "My Drive:Projects"
Lists a folder. A place is the cloud's name, a colon, then the folder.
shiftmydata cp SOURCE DESTINATION
Between two clouds it starts a transfer; from a file on this computer it uploads; to a folder on this computer it downloads.
shiftmydata sync SOURCE DESTINATION
Makes the destination match the source, deletions included. --max-delete stops it before it deletes more than you expect.
shiftmydata save URL PLACE
Saves something on the web into a folder: --as file, video, page (a PDF) or image.
shiftmydata jobs, job ID --watch, cancel ID
Follow and steer transfers.
shiftmydata schedules, run NAME, trigger NAME
List and run schedules, and make a trigger URL.

Every command takes --json for scripts. shiftmydata logout ends the sign-in and forgets this computer's key.

The browser extension

The extension for Chrome, Edge and Firefox saves straight into your clouds. Open it, sign in, and choose the cloud and folder things go into.

n8n and Zapier

Webhooks

A webhook sends an event -- a transfer finished or failed, a schedule was switched off, a live mirror copied changes -- to an address of yours, as soon as it happens. Add one under Notifications as Webhook, or through the API.

Trigger URLs

A trigger URL runs a schedule when something calls it -- a build that finished, a form that was sent. Make one on the schedule with Trigger URL. Anyone with the address can run the schedule, so choose Signed to require the caller to sign each request with the secret shown once.

The public API

Everything above uses the same public API, documented at shiftmydata.com/developers. To build your own app, register it under Developers: a server app gets a client secret or signs with its own key; an app on a device signs in with PKCE and has its tokens tied to a key on the device.

Try it

Everything here is in ShiftMyData's Help too, once you are signed in. Start free

← Notifications · Plans, allowance and codes → · Every chapter