i am currently developing a php web app with an api to access user's data from cross platforms and web.developers will be able to fetch and insert user's data from api using an api key and secret.it will also use HTTP referer to make sure that the call was made from registered app url.but the problem is in javascript where API KEY and Secret will be shown in 'Page Source'.i serched about it on google and then i heard about 'OAuth'.now i have no knowledge about OAuth.i searched it, but nothing found helpful.so please anyone can tell me how to create a secure PHP & Javascript API and what is OAuth and how can i use it to protect my api.
thanks