![Picture of Luesak Luesukprasert Picture of Luesak Luesukprasert](/graphics/unknown.gif)
Luesak Luesukprasert - 2014-10-07 04:45:18
Hi,
Thank you for the lib. Saved me lots of time and headache. I have a suggestion to make it even more powerful.
My scenario is that I would like to make authenticated API calls from javascript/ajax. However, I cannot expose the client key or secret (I think many people don't want to do that!).
That said, it would be nice if I could send an AJAX call with the params I need to a PHP function that calls a method in our lib to generate and return the oauth signature.
With that signature, I can make calls directly via Javascript without exposing any sensitive information.
How is this useful? With this function you can call heavy API functions such as uploads without going through your own web server. It's Client -> API Server.. direct.
I've looked at the code to try to do this. But I think that you might make a cleaner refactor.
Thanks
Kim