W whoisyourex Member Licensed User Longtime User Sep 17, 2014 #1 API Login is =http://xxxxx/api/v1/dashboard/login When our application starts ask the username and password then login sucessfully startnew_activity how to use api post method login please teach me some example source ............................ please help me someone Last edited: Nov 5, 2014
API Login is =http://xxxxx/api/v1/dashboard/login When our application starts ask the username and password then login sucessfully startnew_activity how to use api post method login please teach me some example source ............................ please help me someone
merlin2049er Well-Known Member Licensed User Longtime User Sep 17, 2014 #2 Try dropboxsync http://www.b4x.com/android/forum/threads/dropbox-sync-library.30112/ Upvote 0
W whoisyourex Member Licensed User Longtime User Sep 18, 2014 #3 thank but i don't say that .. i need API post method login asking with their username and password when app start Authenticated methods require the use of an api key and can only be accessed via the POST method. how to do Upvote 0
thank but i don't say that .. i need API post method login asking with their username and password when app start Authenticated methods require the use of an api key and can only be accessed via the POST method. how to do
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2014 #4 You can send a POST request with HttpUtils2. Upvote 0
W whoisyourex Member Licensed User Longtime User Sep 18, 2014 #5 Thank @Erel any examples of how to do this available? Upvote 0
W whoisyourex Member Licensed User Longtime User Sep 18, 2014 #6 I need Login , Logout Function how to do ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2014 #7 Do you know how to build the JSON string? Upvote 0
W whoisyourex Member Licensed User Longtime User Sep 18, 2014 #8 job1.PostString("http://xxxx//api/v1/dashboard/login", "email="&txtEmail.Text"password="&txtPassword.Text) what is wrong i get a error red underline compiling not success .... Upvote 0
job1.PostString("http://xxxx//api/v1/dashboard/login", "email="&txtEmail.Text"password="&txtPassword.Text) what is wrong i get a error red underline compiling not success ....
joseluis Active Member Licensed User Longtime User Sep 19, 2014 #9 nso91191 said: job1.PostString("http://xxxx//api/v1/dashboard/login", "email="&txtEmail.Text"password="&txtPassword.Text) what is wrong i get a error red underline compiling not success .... Click to expand... I think you need a separator between the email and the password: Code: Copy job1.PostString("http://xxxx//api/v1/dashboard/login", "email="&txtEmail.Text&" password="&txtPassword.Text) Upvote 0
nso91191 said: job1.PostString("http://xxxx//api/v1/dashboard/login", "email="&txtEmail.Text"password="&txtPassword.Text) what is wrong i get a error red underline compiling not success .... Click to expand... I think you need a separator between the email and the password: Code: Copy job1.PostString("http://xxxx//api/v1/dashboard/login", "email="&txtEmail.Text&" password="&txtPassword.Text)
Erel B4X founder Staff member Licensed User Longtime User Sep 19, 2014 #10 Don't you need to create a JSON string? For "regular" parameters the correct code is: Code: Copy job1.PostString("http://xxxx//api/v1/dashboard/login", "email="& txtEmail.Text & "&password=" & txtPassword.Text) Upvote 0
Don't you need to create a JSON string? For "regular" parameters the correct code is: Code: Copy job1.PostString("http://xxxx//api/v1/dashboard/login", "email="& txtEmail.Text & "&password=" & txtPassword.Text)
A achtrade Active Member Licensed User Longtime User Feb 12, 2015 #11 This is so basic and demanded, I don't understand why there is not a complete example of login, logout, register and session state over here. I need this too, I'm building it piece by piece from here and there. Upvote 0
This is so basic and demanded, I don't understand why there is not a complete example of login, logout, register and session state over here. I need this too, I'm building it piece by piece from here and there.