This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // | |
| // Desk.com Single Access Token API Example | |
| // | |
| // 1) Copy this file to the root of your webserver and change the $my_desk_url variable to point to your desk.com hostname | |
| // 2) Go to https://[yoursite].desk.com/admin/settings/api-applications and create an API Application | |
| // 3) Copy the consumer key & secret on the listing page after you create your API Application | |
| // 4) Click the "Your Access Token" link to get your single access token & secret | |
| // 5) Copy your single access token & secret and paste it into the appropriate variable in this file | |
| // |