Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halilozel1903/retrofitapp
It is a project developed using Retrofit library & YouTube API. ๐ฅ๏ธ ๐ฅ ๐ฌ
https://github.com/halilozel1903/retrofitapp
android android-app android-application android-studio kotlin kotlin-android kotlin-android-application kotlin-language retrofit retrofit-2 retrofit2 retrofit2-adapter retrofit2-kotlin retrofit2-library retrofit2-rxjava2 youtube-api youtube-player youtube-video
Last synced: about 2 months ago
JSON representation
It is a project developed using Retrofit library & YouTube API. ๐ฅ๏ธ ๐ฅ ๐ฌ
- Host: GitHub
- URL: https://github.com/halilozel1903/retrofitapp
- Owner: halilozel1903
- Created: 2018-07-18T15:41:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-10T12:12:14.000Z (about 1 year ago)
- Last Synced: 2024-05-02T02:10:08.554Z (8 months ago)
- Topics: android, android-app, android-application, android-studio, kotlin, kotlin-android, kotlin-android-application, kotlin-language, retrofit, retrofit-2, retrofit2, retrofit2-adapter, retrofit2-kotlin, retrofit2-library, retrofit2-rxjava2, youtube-api, youtube-player, youtube-video
- Language: Kotlin
- Homepage: https://halilozel1903.medium.com
- Size: 928 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Retrofit App use with YouTube Api ๐ฌ ๐ฅ
![Screenshot](android.jpg)
## The goal of the project ๐ง๐ปโ๐ป
It is a project targeting the use of Retrofit library and how to include and use YouTube Api in the project.## Content of the Project โน๏ธ
It is an application that uses the Retrofit library and YouTube Api developed with Kotlin language.# What is Retrofit? ๐คจ
![Screenshot](retrofit.jpg)
Retrofit is a network library. Its main purpose is to seamlessly receive JSON data over the network.
Along with receiving JSON data, it can handle all exchanges between an application and a server.
Retrofit does what the Volley library does, but it's faster than Volley. like in the volley library
No JSON parser is needed to parse JSON data. All the features required for web services
It is a very powerful library.You can read the article below about the Retrofit - Volley comparison:
[Is Retrofit faster than Volley?](https://medium.com/@ali.muzaffar/is-retrofit-faster-than-volley-the-answer-may-surprise-you-4379bc589d7c)
# What is API โ๏ธ
![Screenshot](api.png)
API (Application Programming Interface) is the interface provided by the application that shares its capabilities so that the capabilities of one application can be used in another application. In this project, we have the features that YouTube API provides to developers.
We will develop an application using# We Make API Settings โ๏ธ
First of all, we will make the necessary arrangements of the Api that we will use in our application from the link below.
https://console.developers.google.com/apis/
After entering the link, press the Activate API's and Events button to select the type of API to be used in the application.
We are directed to the page we will choose. By selecting the application to be used, we click on the option to try the application below.![Screenshot](res1.png)
We are directed to a page to try the application.
![Screenshot](res3.png)
In the example we will use in our application, we will get the id value of any channel and reach its playlists. We use the snippet option. It allows us to access all the information on the channel. We have specified the maximum data we will pull from the channel.
You can see how we can enter the video lists of any channel and get the id value in the picture below:
![Screenshot](res2.png)
After performing the above operations, we start the process by pressing the **Excute** button below.
```java
GET https://www.googleapis.com/youtube/v3/playlists?part=snippet&channelId=UC9IGkktBTEgUKzdWL_x2uUA&maxResults=15&key={YOUR_API_KEY}
```
He gave us a url to use in the application. We will use the API KEY value belonging to the application in our project.
In the picture above, an API KEY value of the application is given. You will use that value. The app has no restrictions
We mark as. If you want to throw your application to the Play Store, you should only select the Android Applications option.## Donation ๐ธ
If this project help ๐ you to develop, you can give me a cup of coffee. โ
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/halilozel1903)
## License โน๏ธ
```
MIT LicenseCopyright (c) 2023 Halil OZEL
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```