This is a little post about how I got some tests up and running on the YouTube v3 API in a Symfony application.
This post is a continuation of this one about setting up FOSRestBundle. The issue is that by default, the REST API that is created is accessible to anyone. For my angularjs app though, I only want the app to be able to access the API, no one else. Otherwise, external sites could hi-jack my API to get data from providers like Amazon. Since these usually have some kind of throttle on them, the API needs securing.
This post is about me getting the REST bundle set up with Symfony, with a view to creating my SPA for noodledig. The idea is to use Symfony for the back-end API and angularjs for the front-end. There are a lot of considerations here, but the first step is to get the back-end api set up.