This file contains 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
APP_ENV=ci | |
APP_KEY= | |
APP_DEBUG=true | |
APP_URL=https://localhost | |
LOG_CHANNEL=stack | |
DB_CONNECTION=mysql | |
DB_HOST=127.0.0.1 | |
DB_PORT=33306 |
This file contains 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 | |
// specify the REST web service to interact with | |
$baseurl = '<<instanceurl>>/rest/v10'; | |
/** | |
* Authenicate and get back token | |
*/ | |
$curl = curl_init($baseurl . "/oauth2/token"); | |
curl_setopt($curl, CURLOPT_POST, true); |