...
Using Postman, import the API collection above
Once imported, navigate to the ‘Create New Authentication’ API call under the ‘Authorization setup' folder
Identify the ‘Authorization’ tab once selecting the api from the folder list
Choose ‘Basic Auth’ from the drop down
Enter the credentials of the Sharpen account corresponding with the account you’re interfacing with
Click ‘Send’
Response should look like
...
Identify the ‘SharpenDB2 Select’ request under the ‘SharpenDB2’ folder in the Postman collection
Under the ‘Authorization’ tab, set the ‘Type’ to “No Auth”
Under the ‘Headers’ tab add the following keys (
x-api-key
andx-api-secret
)Enter the values in correspondence with what was retrieved in the ‘Gathering apiKey and apiSecret’ section of this document
Under the ‘Body’ tab enter your query in JSON format
Click ‘Send’
The request and response should look something like this…
Anchor | ||||
---|---|---|---|---|
|
The examples below show how to convert common mySQL queries into json bodies for the api requests above.
Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
SELECT
SELECT with JOIN
INSERT
UPDATE
DELETE
|
...