API v0

OAuth

Go to /oauth/applications to manage your OAuth applications.

Here is an example, using curl, of obtaining an access token using an Application ID, Client Secret, your WCA email, and your password:

> curl https://www.worldcubeassociation.org/oauth/token -X POST -F grant_type=password -F client_id=APP_ID -F client_secret=APP_SECRET -F username=YOUR_EMAIL -F password=YOUR_PASSWORD

{"access_token":"1d6c95446cab947224286b7bec4382d898c664c7a3cafb16d3d110a3044cf4dc","token_type":"bearer","expires_in":7200,"created_at":1430788134}

An OAuth access token can be used, until it expires, to make authorized API requests. For example, to access information about your account:

> curl -H "Authorization: Bearer 1d6c95446cab947224286b7bec4382d898c664c7a3cafb16d3d110a3044cf4dc" https://www.worldcubeassociation.org/api/v0/me

{"me":{"id":1,"email":"wca@worldcubeassociation.org","created_at":"2015-05-05T00:57:11.788Z","updated_at":"2015-05-05T00:57:12.072Z"}}

Legal TNoodle version

/api/v0/scramble-program
Cookies help us deliver our services. By using our services, you agree to our use of cookies.