Answer the question
In order to leave comments, you need to log in
Is there an example of working with the Adriver service API?
It is necessary to display data on the advertising company on your website.
I read the doc on the adriver website. I'm trying to log in to get userID and token.
The request always returns an error.
Or am I doing something wrong?
;(function ( $, window ) {
var
data = {};
init();
function init () {
getData();
renderData();
}
function getData () {
$.ajax({
type: "GET",
url: "https://api.adriver.ru/login",
contentType: "application/atom+xml",
data: "X-Auth-Login=*****&X-Auth-Passwd=*****",
dataType: "xml",
error: function ( req, status, error ) {
console.log( req, status, error );
},
success: function ( data ) {
console.log( data );
}
});
}
function renderData () {
}
} ( jQuery, this ));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question