|
@@ -17,10 +17,10 @@ discard block |
|
|
block discarded – undo |
|
17
|
17
|
use WebMarketingROI\OptimizelyPHP\Resource\v2\Project; |
|
18
|
18
|
|
|
19
|
19
|
// Init class autloading. |
|
20
|
|
-include dirname(__FILE__) . '/../../vendor/autoload.php'; |
|
|
20
|
+include dirname(__FILE__).'/../../vendor/autoload.php'; |
|
21
|
21
|
|
|
22
|
22
|
// Include Utils.php - a file containing helper functions |
|
23
|
|
-include dirname(__FILE__) . '/../Utils.php'; |
|
|
23
|
+include dirname(__FILE__).'/../Utils.php'; |
|
24
|
24
|
|
|
25
|
25
|
// Get OAuth 2.0 credentials from auth_credentials.json and access_token.json files. |
|
26
|
26
|
$credentials = load_credentials_from_file(); |
|
@@ -117,6 +117,6 @@ discard block |
|
|
block discarded – undo |
|
117
|
117
|
|
|
118
|
118
|
// Save access token for later use |
|
119
|
119
|
$accessToken = $optimizelyClient->getAccessToken(); |
|
120
|
|
-file_put_contents(dirname(__FILE__) . '/../access_token.json', json_encode($accessToken)); |
|
|
120
|
+file_put_contents(dirname(__FILE__).'/../access_token.json', json_encode($accessToken)); |
|
121
|
121
|
|
|
122
|
122
|
echo "Done!\n"; |
|
123
|
123
|
\ No newline at end of file |
Please login to merge, or discard this patch.