Skip to content

Instantly share code, notes, and snippets.

@vpatel9202
vpatel9202 / box_api.py
Last active July 30, 2023 03:46
Obtain access token and refresh token for Box API OAuth 2.0
# See https://forum.rclone.org/t/box-getting-403-errors-when-using-chunker-working-fine-without-it/40388/22?u=vashp2029
import requests
import urllib.parse
import json
# Define your Box app's client ID, client secret, and redirect URI
CLIENT_ID = 'YOUR_CLIENT_ID'
CLIENT_SECRET = 'YOUR_CLIENT_SECRET'