Skip to content

Instantly share code, notes, and snippets.

View scheric1's full-sized avatar

scheric1 scheric1

View GitHub Profile
@phuze
phuze / dropbox-php-auth.md
Last active February 2, 2024 13:46
Dropbox API V2: PHP Authentication Process

Effective September 2021, Dropbox will be deprecating long-lived access tokens.

This GIST generally describes how to authenticate requests to Dropbox API v2, for anyone working on a server-side PHP Dropbox implementation.

It's important to understand three types of codes you'll encounter:

  1. Access Code - this is a one-time code that represents user-granted app access.
  2. Access Token - this is short-lived token that provides access to Dropbox API endpoints.
  3. Refresh Token - this is a long-lived token that allows you to fetch a fresh Access Token.