I've managed to combine FOSUserBundle, FOSOAuthServerBundle, and FOSRestBundle. I've created a client, and I've created a UserController. I've got my first route
http://domain.remote/api/users [ GET list users ].
OAuth is working, I get a "access denied" message. I'd like to write some javascript code that accesses this api, but I'm afraid I don't even know where to begin.
Can someone give me some explanation on how to authenticate and access my new Symfony API? Any examples would be very helpful. Preferably with no JS framework in mind so I can grasp the concept.
[Edit]
Some addition info. The JS code I'm writing will have users log in with their user name / password, and then manage their data with the API working behind the scenes.