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
function fetchMethod() | |
{ | |
var options = {}; | |
// This code uses a "headers" option in order to pass in credentials | |
options.headers = {"Authorization": "Basic " + Utilities.base64Encode(username + ":" + password)}; | |
// The code below logs the output of the following Persistent URL. | |
var response = UrlFetchApp.fetch("https://www.doba.com/retailer-export/get/type/product/tag/*", options); | |
Logger.log(response.getContentText()); //Log the download in the Google Script Logger | |
DriveApp.createFile("file_name_of_your_choice", response); //Download the file to Google Drive. | |
} |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; //This is Sandbox | |
$api_username = "username"; //Username is same between GUI and API | |
$api_password = "password"; //Password is same between GUI and API | |
$api_retailer_id = "5089840"; // This Retailer ID MUST match the URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; | |
$api_username = "username"; | |
$api_password = "password"; | |
$api_retailer_id = "5089840"; | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
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 | |
$api_url = "https://sandbox.doba.com/api/20110301/xml_retailer_api.php"; // This is Sandbox | |
$api_username = "username"; //Username is the same between GUI and API | |
$api_password = "password"; //Password is the same between GUI and API | |
$api_retailer_id = "5089840"; //Retailer ID MUST match URL you are posting to | |
$strRequest = " | |
<dce> | |
<request> | |
<authentication> | |
<username>". $api_username ."</username> |
NewerOlder