G gragey Member Licensed User Longtime User Sep 23, 2016 #1 Hello I've some data collected whith Sigfox network and stored on a platform (actoboard.com) How can I download the file form this platform , the access is protected by a personnal API key. The file is stored at this url : https://api1.actoboard.com/providers/~9WvdzsL-pJ5/Test SigFox @way.csv Can I use the httputils2 library via download or download2 ? If yes how can i transmit the Api key ? Thank you for your response.
Hello I've some data collected whith Sigfox network and stored on a platform (actoboard.com) How can I download the file form this platform , the access is protected by a personnal API key. The file is stored at this url : https://api1.actoboard.com/providers/~9WvdzsL-pJ5/Test SigFox @way.csv Can I use the httputils2 library via download or download2 ? If yes how can i transmit the Api key ? Thank you for your response.
Erel B4X founder Staff member Licensed User Longtime User Sep 24, 2016 #2 gragey said: Can I use the httputils2 library via download or download2 Click to expand... Yes (OkHttpUtils2). gragey said: If yes how can i transmit the Api key ? Click to expand... It depends on the web service. There are many possible ways. What does their documentation say? Upvote 0
gragey said: Can I use the httputils2 library via download or download2 Click to expand... Yes (OkHttpUtils2). gragey said: If yes how can i transmit the Api key ? Click to expand... It depends on the web service. There are many possible ways. What does their documentation say?
G gragey Member Licensed User Longtime User Sep 27, 2016 #3 Thank you Erel for your confirmation about OkHttpUtils2 lib. No detailed documentation is present. After contact with Actoboard the message is : The API key is used for authentification http download file .CSV : the key is the login, and the password is not necessary. For example whith Curl : curl -u ${ACTOBOARD_API_KEY}:x "https://api1.actoboard.com/providers/[URL='https://api1.actoboard.com/providers/~9WvdzsL-pJ5/Test%20SigFox%20%40way.csv']~9WvdzsL-pJ5/Test SigFox @way.csv"[/URL] If you have an idea ? Bye Upvote 0
Thank you Erel for your confirmation about OkHttpUtils2 lib. No detailed documentation is present. After contact with Actoboard the message is : The API key is used for authentification http download file .CSV : the key is the login, and the password is not necessary. For example whith Curl : curl -u ${ACTOBOARD_API_KEY}:x "https://api1.actoboard.com/providers/[URL='https://api1.actoboard.com/providers/~9WvdzsL-pJ5/Test%20SigFox%20%40way.csv']~9WvdzsL-pJ5/Test SigFox @way.csv"[/URL] If you have an idea ? Bye
Erel B4X founder Staff member Licensed User Longtime User Sep 27, 2016 #4 Try to set Job.Username and Job.Password. Upvote 0
G gragey Member Licensed User Longtime User Sep 28, 2016 #5 I try : job1.Username ="8Sf8icZlaOEKqq_zO3DYxE1FtVgLZKFHD" job1.Download("https://api1.actoboard.com/providers/~9WvdzsL-pJ5/Test SigFox @way.csv") and the error is always : Error: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated I'll search another method to connect to this server. Thank you very much. Upvote 0
I try : job1.Username ="8Sf8icZlaOEKqq_zO3DYxE1FtVgLZKFHD" job1.Download("https://api1.actoboard.com/providers/~9WvdzsL-pJ5/Test SigFox @way.csv") and the error is always : Error: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated I'll search another method to connect to this server. Thank you very much.
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2016 #6 This means that the server certificate is not recognized. You can try it with OkHttpClient.InitializeAcceptAll (with HttpUtils2 source code). Upvote 0
This means that the server certificate is not recognized. You can try it with OkHttpClient.InitializeAcceptAll (with HttpUtils2 source code).