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
curl -H "Content-Type:application/json" -H "Authorization:Bearer NmRmMTk3NTNhMDkzMjM4ZmIxNDU1Y2JiM2M1NTZmZDNjMDljYzM3YjFjYTBlOTI0MDVmY2QyNmIxNTVjODY2Yw" http://pim-ce-17-odm.local/app_dev.php/api/rest/v1/products |
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
curl -X POST -H "Content-Type:application/json" -H "Authorization:Basic Ml8xeGtrdnhyamt1NzRrNHNzOGs0NGt3d3NrbzQwbzA4Y2tnNDg4b2djb3Nnb29rZ280MDozcHM0aTZxNjJyNnMwdzg4a3Nvc3NvMGNjOHM0d2NjMHc0dzRnY29nbzRnd2dra3drNA==" -d '{"grant_type":"password","username":"admin","password":"admin"}' http://pim-ce-17-odm.local/app_dev.php/api/oauth/v1/token |
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 | |
$host = "http://pim-ce-17-odm.local/app_dev.php/"; | |
$url = $host."api/rest/v1/products"; | |
$tokenType = "Bearer"; | |
$accessToken = "M2IzMTFlYTE0MDZjNTc4YTlhNjNiY2I4MTdhYTRhNTMxMjlkY2FhYWRiYWM3MjMyMTgzZjdmZTIyMDExMDk1Yw"; | |
$headers = array(); | |
$headers[] = 'Content-Type: application/json'; | |
$headers[] = 'Authorization: '.$tokenType.' '.$accessToken; |
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 | |
$host = "http://pim-ce-17-odm.local/app_dev.php/"; | |
$url = $host."api/oauth/v1/token"; | |
$username = "admin"; | |
$password = "admin"; | |
$clientId = "2_1xkkvxrjku74k4ss8k44kwwsko40o08ckg488ogcosgookgo40"; | |
$secret = "3ps4i6q62r6s0w88ksosso0cc8s4wcc0w4w4gcogo4gwgkkwk4"; | |
$base64 = base64_encode($clientId.":".$secret); |
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 | |
$app | |
->get('/crowdin/pull', function (Request $request) use ($app) { | |
$responses = array(); | |
$config = $app['config']['crowdin']['download']; | |
$app['crowdin']->api('export')->execute(); | |
if (!is_dir($config['base_dir'])) { |