Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to receive a code which is been send from the mobile application during confirmation process.And I should check through the database if the user is authorized.What should I do to receive and analyze the data?
I suggest you start by learning about RESTful API Design. RESTful principles provide strategies to handle CRUD actions using HTTP methods. REST for example would dictate the usage of PUT/PATCH to UPDATE a record in the database for whatever it may be (user/item/etc).
You could have a URI which handles the verification by checking the details the mobile application has sent to the server against the appropriate record in the database and then sending back an appropriate response.
Here's a good example of where you can get started; http://www.restapitutorial.com/lessons/restfulresourcenaming.html
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm new to Laravel, I want to update the interface every time there is a change in the database but I think calling a JavaScript every 5s to update the interface is not very efficient, so I wonder what is the most efficient way to do that?
Have you considered using some for of websocket to create a connection between your backend and JavaScript based UI?
Either https://laravel.com/docs/master/broadcasting or https://github.com/beyondcode/laravel-websockets would allow you to notify your UI to request the updates from your Laravel backend.
My personal suggestion would be that you JS would receive a notification that something had changed and then have to obtain the updated information via Ajax so that you are not sending confidential information through Pusher's servers.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Sorry if my question is a little confusing, i have made a Notification system using php with codeigniter framework which is working all good. i am using helper to create notifications and check for new notifications. In my case there is only one notification as of now ie.. payment remainder which checks for due date and adds notification to db.
What i am trying to do is to create a form where admin-user will be able to create notifications without the need of programming a helper everytime.
please let me know what is the best way to apporach this situation.
Regards
Max
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am looking for a custom reference key to use with my application via the Twilio SMS API. To crosscheck my request, I need a reference number generated at my end to send in a rest request and get the same in response.
Is there any way Twilio allows custom parameter in the request?
Unfortunately you cannot add custom parameters in Twilio.
You are correct in that the only way you would be able to do this is add the parameters to the querystring and we would just pass those parameters along to your application. May be in future release they will come up with custom parameters feature.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I've built a website that authenticates users via facebook.
The way I've set it up is like this: The website uses the facebook JS SDK on the front end, and when the user authenticates with facebook their access_token is sent to my server via an ajax call (using HTTPS for security) - where the graph api is queried and their session is initiated server-side (Using a database for secure session storage of user data).
Can anyone think of any potential problems this approach might lead to? Thanks!
This is a very common scenario. The only issue is that unless you request offline_access that token you get is only valid for an hour.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Here is my API call link :
http://192.168.0.107/AYURV/api/V1/user/signup.php
This link only access by only specific android app how can do that?
Advance Thanks.
Have the request sender send a UserAgent and device and app version
This way you can filter incoming requests based on this information on the server side, and reject the ones that don't match.