Delvoid's avatar
Level 19

Third party API series

Is there any plans to create a series on how to implement and work with 3rd party API's such as twitch api or any similar api using laravel. If not, does any one have any recommendations to where i can learn how to do this correctly

0 likes
5 replies
jlrdw's avatar

With thousands of 3rd party api's, (maybe even hundreds of thousands) it would be hard. Taylor covers the basics already. But for specific code, the 3rd party api usually has documentation and examples. Some even have videos. You may see a

  • How to implement in php

If you don't see laravel, remember laravel is a php framework and adjust (tweak) code as necessary.

https://laravel.com/docs/5.7/eloquent-resources For Eloquent: API Resources

https://laravel.com/docs/5.7/passport

shez1983's avatar

what are you having problems on? you just need to learn how to integrate with an API (be it twitch, PayPal, stripe etc) and then you will know how to do it with rest.. you might want to use adapter pattern so that you are not directly using an API

madsynn's avatar

@jlrdw

you posted " Taylor covers the basics already." but can you tell me which ones to check out to see the covered basics you talk about please?

jlrdw's avatar

https://laravel.com/docs/5.8/eloquent-resources

Medium also has articles such as

Create REST API in Laravel with authentication using Passport - Medium

Sorry no link, I don't go to that site. Put put that in a search it will come up.

Reason https://www.virustotal.com/#/url/206cc24ad041a6acd8fb5a12e42a8c7b3a29e0d4a98cb89287b44f8311487eaa/community

Probably safe, but I take no chances, many here use the site.

Another tutorial:

https://www.cloudways.com/blog/connect-android-app-with-laravel-api

https://laracasts.com/discuss/channels/laravel/restful-api-in-laravel-56

manshu's avatar

Yes please, i'd like to learn more about this too.

Please or to participate in this conversation.