I'm trying to get the planning from Teamweek in my js app. (API)
function get_teamweek_planning()
{
var api_url = 'https://teamweek.com/api/v2/',
api_key = '1234567',
object_type = 'projects';
$.ajax(
{
url: api_url + api_key + '/projects.json',
type: 'GET',
dataType: 'jsonp',
cache: false,
data: {},
success:function(response){
console.log('response:', response);
}
});
}
This returns a 403 (forbidden). This is documented and means authentication fails. But how do i fix it?