Here's my code (PHP) to connect to version 3 of the API. I use the OAuth PECL extension for PHP to do the requests. The script does the user login part in the background.
I also use another tiny PHP script as oauth_callback to catch the verifier string after the user logs in. It's shared below and in the comments of the script.
What you need:
- Consumer key and consumer secret provided by Beatport
- A normal Beatport user login/password
So, how it works:
1. It gets a request token using the consumer key/secret
2. Sets the request token/secret to log the user in
3. Logs the user in, and catches the verifier string (using the callback script)
4. Uses this verifier string to get the Access Token
5. Sets Access Token for all further API requests
Hope it helps someone out!