DlgzRogelio / Project-1

MIT License
0 stars 1 forks source link

Documentation: API YouTube #6

Closed DlgzRogelio closed 3 years ago

ca2los commented 3 years ago

DOCS

OK guys, the links I'm sharing with you are related to the guides of how to use the API parameters and additional references to understand how to create a new project with Google developers services:

https://developers.google.com/youtube/registering_an_application https://developers.google.com/youtube/v3/docs/?apix=true https://developers.google.com/youtube/v3/getting-started#Sample_Partial_Requests https://developers.google.com/youtube/v3/docs/playlistItems/list#javascript

The key for the project is public (for now)

That means our website is not the only one available to access the data, but it will change to private. Anyway, just make sure you don't share it or make use of this key with another domains.

API KEY: AIzaSyAbb7wtIBduFe6lcN0IfhKwyKaWdA46bKg

EXAMPLE URL:

https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=AIzaSyAbb7wtIBduFe6lcN0IfhKwyKaWdA46bKg&part=snippet,statistics

EXAMPLE CODE:
    function getApi() {
        var requestUrl = 'https://www.googleapis.com/youtube/v3/videos?id=7lCDEYXw3mM&key=AIzaSyAbb7wtIBduFe6lcN0IfhKwyKaWdA46bKg&part=snippet,statistics';

        fetch(requestUrl).then(function (response) {
            return response.json();
        })
        .then(function (data) {
            console.log(data);
        });
    }
    getApi();

Plz, let me know if you have any issues or comments related with the API.

cc @DlgzRogelio @ian-dot @ltrevino

DlgzRogelio commented 3 years ago

excelente lo voy a revisar

ltrevino commented 3 years ago

Se decide no utilizar YouTube Api por restricciones de funcionalidad.