×
Chargement en cours

Probleme API betaseries

Bonjour à tous,

j'ai un problème , je n'arrive pas a recuperer le token avec l'url https//api.betaseries.com/members/accesst_token

voici le message d'erreur :

XMLHttpRequest cannot load https://api.betaseries.com/members/access_token. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 400.XMLHttpRequest cannot load https://api.betaseries.com/members/access_token. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 400.

j'utilise ce code :

    var data = {};
    data.code=code;
    data.client_id="1068baxxf269";
    data.client_secret="f2236acxxb7c833f5711c7b7896b9129";
    data.redirect_uri="http://localhost:8100/#/tab/account";
    url = "https://api.betaseries.com/members/access_token";
        $ionicLoading.show({
          template:'Chargement...'
        });
        $http.post(url,data).success(function(response){
          $ionicLoading.hide();
          $scope.token = response
          alert(JSON.Stringify($scope.token));
        }).error(function(response){
          $ionicLoading.hide();
          alert("Error:"+response);
        })



Merci d'avance pour toute aide.

Membre depuis le 23 avril 2012 — 2 messages