项目作者: KirkBushman

项目描述 :
A lightweight Imgur API client for android, built using Moshi and Retrofit
高级语言: Kotlin
项目地址: git://github.com/KirkBushman/imgur-android.git
创建时间: 2020-07-09T09:42:51Z
项目社区:https://github.com/KirkBushman/imgur-android

开源协议:MIT License

下载


imgur-android

A lightweight Imgur API client for android, built using Moshi and Retrofit

How to install.

  1. allprojects {
  2. repositories {
  3. ...
  4. maven { url 'https://jitpack.io' }
  5. }
  6. }
  7. dependencies {
  8. implementation 'com.github.KirkBushman:imgur-android:Tag'
  9. }

Obtain a client.

  1. val client = ImgurClient(UserlessCredentials(**CLIENT ID**), logging = true)

Use it to browse Gfycat.

  1. // get album data
  2. val album = client.album(albumHash)
  3. // get gallery data
  4. val gallery = client.gallery(galleryHash)

License

This project is licensed under the MIT License