Now that you have the API key and token for your account, you can use them to start making requests. Tokens should be kept secret! Your First API Call This token, along with your API key, can be used to read and write for your entire Trello account. Once you click Allow you'll grant your own app (identified via your API key) access to your account and be redirected to a page that contains the API token. But we'll leave everything as is, and click "Allow". The permissions, duration of access, and application name displayed are all configured via the URL parameters. Your users will always see this screen when granting your application access. You should be prompted with the following screen: ![]() ![]() On the same page where you found your API key, click the hyperlinked "Token" at the right of the API key. Authentication and Authorizationįor the purposes of this walkthrough, we'll have you generate a token for yourself. However, because API tokens grant access to the user's data, they should be kept secret. An API key by itself doesn't grant access to a user's Trello data. Once you already have created a Power-Up, you can visit the page, access your Power-Up, navigate to the API Key tab and select the option Generate a new API Key.īecause of the way the authorization flow works, the API key is intended to be publicly accessible. You can check our Managing Power-Ups documentation to get information on how to create your first Power-Up. Instead, your application passes control to Trello (identifying itself via the API key) and once Trello has allowed the user to choose an account and sign in, Trello will hand the user and control back to your application, along with an API Token.įor generating an API key, you first need to have created a Trello Power-Up. Trello uses a delegated authentication and authorization flow so that your application never has to deal with storing or handling usernames or passwords. We're going to walk you through getting your API key and token, making a few requests, and then give a high-level look at some of the most popular API resources. Building a full application with Trello for web or mobile means getting to know the various concepts and models making up Trello. The Trello API is extremely powerful and fun to use.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |