Php api

Started on the old forum in February 2013 · view the original in the archive · old links redirect here

3 replies · 829 views · started 13 years ago · 1 min read

4 participants
n0tsure Newbie · 9 posts #1

Hi, Trying to figure out how to make a simple web api. For example, users can register, login information is used in api url eg api.php? User = $ user & pass = $ pass & action = send. Action is used to send the relevant data. Also, the user has the right to send limited data. How to limit the 100 send actions per user?

shushant Developer · 207 posts #2
class UserProvide {
 function loadUserData(){
//code here
}
function getUSerByEmail($email){
}
function addClients($userName,$userPass,$userEmail){
//rest of code here
}
function Logout(){
//logout handler
}
}
CreativityKills Lead · 833 posts #4

One question that should be obvious; why should an api have sensitive data like password and username transported over http? There's a reason why OAuth exists you know.

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close