Because you're using an access key for the Sandbox environment, you can experiment with the API as much as you like without incurring real costs or hailing real Dashers. When you created your access key, you created it for the Sandbox environment (until you request production access, you can only create access keys for the Sandbox environment). Now you can create a delivery by making a request to the Drive API using Postman. In the upper right, next to the eyeball, click the dropdown and select the "Drive sandbox" environment you just created. Add two default variables called "developer_id" and "key_id", and two secret variables called "signing_secret" and "JWT" (note the capitalization) and paste in each of the values from your Access Key.In the left sidebar, click Environments, then click the ➕ symbol.Once you have the fork of the collection, set up an Environment to store your access key. You may need to sign up for Postman if you don't have an account. Set up Postman įirst, click the button below to fork the DoorDash Drive Postman collection: Name your key test-app and click Create Access Key.Ĭlick Copy to copy the access key to your clipboard and then paste it somewhere where you can access it later in the tutorial. You'll use this access key to create a JSON Web Token (JWT) that you can use to make requests to the Drive API. On the Credentials page, click the plus ( +) icon in the center of the page to create a new access key. In the left navigation, click Credentials. If you already have a DoorDash account, enter your email and password and sign in if not, or if you want to use a different account for development, click Sign Up and follow the process to create an account. Go to the Developer Portal using the link in the top right corner of this page. Preview: This will show the preview of the page that has been sent.If you're already familiar with how to use Postman, you can jump right in: Table of contents Raw: This is almost similar to pretty but shows the code without colors and in single lines. Pretty: In this option, code will show colorfully with different keywords and have indentations in the code, which is useful for reading. In the Body tab of the response box, we have multiple options to see the response in a different format. Here, we got the status code 200 200, which means we got a successful response for the request. Make sure you have a proper internet connection otherwise, you will not get a response. Step 5: Once you press the send button, you will get the response from the server. We will use Step 3: Now, select the GET request from the list of request methods. Step 2: Enter the URL in the address bar. Once you create a new request then you will get the following window: You can also open the new tab by entering ctrl+T or from the Open New menu select Tab option. To create a new request, open a new tab, click from the + plus button. To create the first GET request in Postman, follow the following steps: You can try to search for something on Google you will get the same search string in the URL. For example, if you search anything on Google, you actually using a GET request because there is no sensitive information, and you are just requesting the page. GET request contains all information inside the URL, and because of that, some people do not prefer to use GET request while they are sending some confidential data such as passwords. Means, there is no creation, updation, addition, or deletion of data on the server when you are making a GET request. GET request will not affect any data on the server. When you make the GET request on the server, then the server responds to the request. A GET request gets the information from the server. Since now we know how to create the request in Postman, it's time to work on GET request.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |