Android Question How to call the direct Action (Insert or Delete) from b4a to API file?

Pravee7094

Active Member
Hi team,
I have developed the API using some other language.
In b4a, I have to call the direct action name which is placed in the API file (PHP file).
For example,
In the API file I have a "/insert" actions. So If I insert the one data into database I should call only the action name from b4a.
Is this possible in b4a?

We have already tried with php direct file using "Poststirng" command in Okhttputils2. There are well and good. But this is used to call the whole PHP file.
But we just want next level method.

So we want this type -> "controller_name(file_name)/Action(insert)" .

Any suggestion or Help?
Thanks
Praveen
 

aeric

Expert
Licensed User
Longtime User
But this is used to call the whole PHP file.
What do you mean call the whole PHP file? You can add parameter to the URL and it only call one of the functions. Let say you have a /user controller then you can call /user/login or /user/register.

You can check my example.
 
Upvote 0

Pravee7094

Active Member
What do you mean call the whole PHP file? You can add parameter to the URL and it only call one of the functions. Let say you have a /user controller then you can call /user/login or /user/register.

You can check my example.
Superb creation sir. Thank you so much.?
 
Upvote 0
Top