Retrogram

Retrofit (Square) based Instagram client for Java and Android

Лицензия

Лицензия

Группа

Группа

com.getinch.retrogram
Идентификатор

Идентификатор

retrogram
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Retrogram
Retrofit (Square) based Instagram client for Java and Android
Ссылка на сайт

Ссылка на сайт

https://github.com/getinch/retrogram
Система контроля версий

Система контроля версий

https://github.com/getinch/retrogram

Скачать retrogram

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.getinch.retrogram/retrogram/ -->
<dependency>
    <groupId>com.getinch.retrogram</groupId>
    <artifactId>retrogram</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.getinch.retrogram/retrogram/
implementation 'com.getinch.retrogram:retrogram:1.0.1'
// https://jarcasting.com/artifacts/com.getinch.retrogram/retrogram/
implementation ("com.getinch.retrogram:retrogram:1.0.1")
'com.getinch.retrogram:retrogram:jar:1.0.1'
<dependency org="com.getinch.retrogram" name="retrogram" rev="1.0.1">
  <artifact name="retrogram" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.getinch.retrogram', module='retrogram', version='1.0.1')
)
libraryDependencies += "com.getinch.retrogram" % "retrogram" % "1.0.1"
[com.getinch.retrogram/retrogram "1.0.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.squareup.retrofit : retrofit jar 1.2.2

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.slf4j : slf4j-simple jar 1.7.5

Модули Проекта

Данный проект не имеет модулей.

#Retrogram

Retrofit (Square) based Instagram client for Java and Android

#Download

<dependency>
    <groupId>com.getinch.retrogram</groupId>
    <artifactId>retrogram</artifactId>
    <version>1.0.1</version>
</dependency>

#Usage

First you need to acquire an access token. You can authenticate the user by displaying the standard Instagram OAuth2 login screen. You can build the url with the following method:

Instagram.requestOAuthUrl(final String clientId, final String redirectUri, final Scope... scopes);

Then you can access various Instagram endpoints (Users, Media, Comments, Likes, Tags, Locations).

final Instagram instagram = new Instagram(accessToken);

A simple user profile query would be like this:

final User user = instagram.getUsersEndpoint().getUser(userId);

#Building

If you want to hack into the code, feel free to fork the repository. Pull requests are welcome! Please make sure tests complete successfully.

mvn clean test -Daccess.token={your access token} -Dclient.id={your client id}

#License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Версии библиотеки

Версия
1.0.1