C#C
C#16mo ago
CrownedHaley

403 Forbidden

Hello! I am trying to hit an endpoint on Crunchyroll so I can get my auth token. I have looked at various sources and cannot get past the 403 error.

I've never used the application/x-www-form-urlencoded content type before so I am unsure if I need to encode it.

Format:
POST /auth/v1/token

# Request Headers
Authorization: Basic eHVuaWh2ZWRidDNtYmlzdWhldnQ6MWtJUzVkeVR2akUwX3JxYUEzWWVBaDBiVVhVbXhXMTE=
ETP-Anonymous-ID: ${ETP_ID}

# Request Body

"scope=offline_access&device_name=${deviceName}&device_id=${deviceId}&device_type=${deviceType}&grant_type=password&username=${email}&password=${password}"


https://github.com/Crunchyroll-Plus/crunchyroll-docs/blob/release/Services/EtpAccountAuth/POST/signIn.md

Example: https://github.com/crunchy-labs/crunchyroll-rs/blob/master/src/crunchyroll.rs line 436
image.png
GitHub
An attempt to document Crunchyroll's API. Contribute to Crunchyroll-Plus/crunchyroll-docs development by creating an account on GitHub.
GitHub
🦀 Pure Rust implementation of the Crunchyroll API. Contribute to crunchy-labs/crunchyroll-rs development by creating an account on GitHub.
Was this page helpful?