Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created March 22, 2013 17:40
Show Gist options
  • Save mjallday/5223220 to your computer and use it in GitHub Desktop.
Save mjallday/5223220 to your computer and use it in GitHub Desktop.
Change API Key

first, get your old API key secret go to www.balancedpayments.com/dashboard and click on the Settings page

now, let's generate a new API key secret

curl -u API_KEY_SECRET: https://api.balancedpayments.com/v1/api_keys -X POST

you should get a response like this:

{
    "secret": "10a7a762931711e28edb026ba7cac9da", 
    "uri": "/v1/api_keys/AKvr8AOAKMHFZclIL5ECSDw"
}

take note of the URI and the secret, these are important.

great, take that new api key secret and add it to your application and dashboard. to add it do the dashboard click on the dropdown in the dashboard on the top left, choose "Add marketplace" and then add it under the "existing marketplace" section.

now you need to delete your old api key

curl -u NEW_API_KEY_SECRET: https://api.balancedpayments.com/v1/api_keys/OLD_API_KEY_URI -X DELETE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment