Retrogram

Retrofit (Square) based Instagram client for Java and Android

License

License

GroupId

GroupId

com.getinch.retrogram
ArtifactId

ArtifactId

retrogram
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

Retrogram
Retrofit (Square) based Instagram client for Java and Android
Project URL

Project URL

https://github.com/getinch/retrogram
Source Code Management

Source Code Management

https://github.com/getinch/retrogram

Download retrogram

How to add to project

<!-- 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"]

Dependencies

compile (1)

Group / Artifact Type Version
com.squareup.retrofit : retrofit jar 1.2.2

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.slf4j : slf4j-simple jar 1.7.5

Project Modules

There are no modules declared in this project.

#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.

Versions

Version
1.0.1