Comments
-
ok i understand but the error is in : Dim myStreamReader As New StreamReader(_responseStream) and i thought that was connected to the call https://content.dropboxapi.com/2/files/download
-
i'm learning and reading guides and tutorial but the error made me worry that API were missing something and so I asked for your help
-
Yes but i don't understand. . First of all, in you opinion is correct use streamreader ? I don't want become crazy and after i have other problems 🙂
-
In first case a define the object and i create as a new httpclient in the second i declare ad object as a new streamreader using data from response . In the code of example i see i thought it works so 🙂
-
Hm both ? i thought that it declared and that got value.
-
the problem was that i put a space after refresh_token ...you can see "&grant_type=refresh_token " ( i use https://api.dropboxapi.com/oauth2/token and it works ) Thank you very much
-
I changed my code but i have an error 400 Bad request (I try with api.dropboxapi.com and with api.dropbox.com , which one is the right one ? ) Dim _command As String _command = "https://api.dropboxapi.com/oauth2/token " Dim Request As HttpWebRequest Request = HttpWebRequest.Create(_command) Request.Method = "POST"…
-
maybe I understood the problem. I try to continue with my method. ty. ( Is there the possibility for users to write directly to each other in the Dropbox community? )
-
sure but this is a call that i need and I would like to understand where I'm going wrong.
-
ok i hope to use the token refrecsh that don't expire to access data. Ok i'll generate a new one. Ty
-
Good morning, a clarification : the refresh token must be used just to obtain a new token or i can use it to obtain data ( like in /list_folder ) ?
-
ty very very much.
-
i downloaded curl. Now i have two token and the second one never expire. Right ? id' like use always it 🙂
-
chooses : -UseBasicParsing -Uri -UseDefaultCredentials -UserAgent
-
ok .. i'm doing all steps when i do curl https://api.dropbox.com/oauth2/token -d code=<received code> -d grant_type=authorization_code -u <App key>:<App secret> answer me that u is ambiguos
-
do you speak about this ? Link
-
I thought that the token was quite alway the same. So.. the first step i must autenticate the app / user by this : https://www.dropbox.com/oauth2/authorize?client_id=<APP_KEY>&response_type=code After i use https://api.dropboxapi.com/oauth2/token Example: code flow access token request Right ?
-
I understood the nonsense I was saying, I continue to study. Thank you
-
i dont understand some steps. Duration token is 4 hours, if generate now and tomorrow i'll use it in my app , the server'll answer me that token in expired / invalid . So should i refhresh by Api ?
-
My scenario in where by web app my customer look and open his file in dropbox. Just one form or two, just one user or two. I think that token access should be good. However if in future my scenario will change i'll change also my code. So , if you agree with me i'll continue on this way . So i'll need generate a new token…
-
Ok , that was ad address to use in browser 😞 I understood that now it's better if i generate a new token ( by API ) every time. Is it or not ?
-
I try to read guide and to write code to obtain by code a new token. this is the command https://www.dropbox.com/oauth2/authorize?client_id=.....&response_type=code&token_access_type=offline is that the right way ? becouse i have error 404 server not found
-
Perfect, it looks right. Just a question : i had my token , generate 1 or 2 days ago and that didn't work. If i go in App console i didn't see it and o i generate again. How is valid a token ? should i generate a new one every time i use my web app ?
-
I have generate a new token and insered in my web app. Additional information: Error in call to API function "files/list_folder": request body: unknown field 'Path'
-
Thank you. It's first time that i use this tools. I changed the Metod in POST and insered the path ( looking other example ) but i have always error 401 not autorized. this is new cod : Dim _command As String _command = "https://api.dropboxapi.com/2/files/list_folder" Dim Request As HttpWebRequest Request =…
-
i dont' think that it should be for my verson of visual studio and however i cannot update it. I'll try to use direct call to api. Do you know where can i fine some code for example in .net ? Thank you Luca
-
Hi Gary_Boxer, i found this post very interesting because i'd need access to file of dropbox. I use vb.net in my web application. Do you know where can i found some example to dim authparameter, use token etc etc ? Thank you Luca
-
I'm sorry but I don't understand. I'm trying to install form the Nuget Package the last version of SDK ( 7.0.0 ). In my solution the property page as set as target framework : .Net Frameword 4.6.2. This shoud include the .net standard 2.0 that is necessary for this sdk. What esle can i check ?
-
I found Dropbox.Api v.7.0.0 in Nuget Package but if i try to instal it i have an error : Error Could not install package 'Dropbox.Api 7.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.2', but the package does not contain any assembly references or content files that are…