Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Provide your client secret genereated from your app
- "scope ": "https://graph.microsoft.com/.default"
- },
- success: function (response) {
- console.log(response);
- token = response.access_token;
- $.ajax({
- url: 'https://graph.microsoft.com/v1.0/me/planner/tasks',
- type: 'GET',
- dataType: 'json',
- beforeSend: function (xhr) {
- xhr.setRequestHeader('Authorization', 'Bearer '+token+'');
- },
- data: {},
- success: function (results) {
- console.log(results);
- debugger;
- },
- error: function (error) {
- console.log("Error in getting data: " + error);
- }
- });
- }
- })
- }
Add Comment
Please, Sign In to add comment