bspindia Helpful | Level 6

Comments

  • i imported it hence working for anchor tag, issue with Dropbox.embed()
  • if i wouldn't appended the dropoin script to body, how would anchor tag embed will work ? function textBookLibrary(){$(".mNavCntnt").empty();$(".mNavCntnt").append($("<div>").attr('class','tbContainer').append($("<div>").attr('name','subject').text("Health and Physical…
  • Hurray made it $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.dropbox.com/oauth2/token');curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, "grant_type=refresh_token&refresh_token=***refreshtoken******");curl_setopt($ch, CURLOPT_USERPWD,…
  • every thing is fine when run from terminal, but can you please correct paramenters, i am getting this error {"error": "invalid_request", "error_description": "The request parameters do not match any of the supported authorization flows. Please refer to the API documentation for the correct parameters."}…
  • as per my understanding, i got the code, and when i made a curl request from terminal window received short live token and refresh token i should keep refresh token and request for shorl live token using refresh token using curl to make api calls, am i right 
  • i compress the input file image to webp using canvas, and uploaded using token now due to short live tokens, i am getting unauthorised error while uploading blob hence to i need unexpired token, now as dropbox is not giveing legacy tokens, i have to authorize app-> generate new token with code->upload blob to dropbox with…
  • means i have to make fetch with received code for token, right
  • ok used location.assign() and got code in redirected url used url searchparamaters and stored code again i made a location.assign("https://www.dropbox.com/oauth2/authorize?client_id=81q62jqcjxcyu4x&redirect_uri=https://bspindia.online/test.html&code="+code+"&state=state")but got 400 error as Unexpected response_type…
  • failed to load request error on clicking save in dropbox popup windowi tried to save objectURLplease assistcode $("#fileInput").change(function(){ let file = this.files[0]; let image = new Image(); image.src = webkitURL.createObjectURL(file); image.onload = function(){ let cvs = document.createElement("canvas"); cvs.width…
    in saver Comment by bspindia December 2022
  • pop up blocking,
    in saver Comment by bspindia December 2022
  • i am getting the code when i manually enter url in browser, but how to get using fetch api // authorizationlet dropBox = new Object();dropBox.apiKey = 'XXXXXXXXXX';dropBox.apiSecret = 'XXXXXXXXX';fetch('https://www.dropbox.com/oauth2/authorize',{method:'get',headers:{ "Content-Type":"application/json",…
  • i am trying to take code in res please correct headers, right now i am having error as invalid_request fetch('https://api.dropboxapi.com/oauth2/token',{method:'post',headers:{"Content-Type":"application/json","Authorization":"Bearer…
  • how to generate short live tokens using fetch api