0

I have a request key but i do not know how to use it while making an http request. can someone give me an example. here is my code for the moment :

 function getQuestionLinks(tag) {
    return $q(function(resolve, reject) {
    $http.get('https://api.stackexchange.com/2.2/questions?order=desc&sort=activity&tagged='+tag+ '&site=stackoverflow&filter=!BHMIbze0EPheMk572h0ktETsgnphhV')
      .then(function(links){
        resolve(links);
      })
      .catch(reject);
    });

   }

1 Answer 1

1

Referring to the Hello World example, you should be able to add on

&key=your_api_key

as a URL query parameter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.