foursquare4j

Foursquare for Java - A Java wrapper to the Foursquare API

License

License

Categories

Categories

Square Business Logic Libraries Financial
GroupId

GroupId

br.com.thiagomoreira.foursquare
ArtifactId

ArtifactId

foursquare4j
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

foursquare4j
Foursquare for Java - A Java wrapper to the Foursquare API
Project URL

Project URL

https://github.com/tmoreira2020/foursquare4j
Project Organization

Project Organization

Thiago Moreira
Source Code Management

Source Code Management

https://github.com/tmoreira2020/foursquare4j

Download foursquare4j

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
com.squareup.okhttp3 : logging-interceptor jar 3.3.1
com.squareup.retrofit2 : retrofit jar 2.1.0
com.squareup.retrofit2 : converter-gson jar 2.1.0
org.apache.commons : commons-lang3 jar 3.4

test (1)

Group / Artifact Type Version
com.squareup.okhttp3 : mockwebserver jar 3.3.1

Project Modules

There are no modules declared in this project.

Foursquare4j

Maven Central

Foursquare4j is a Java/REST client to access the Foursquare API available at Foursquare's Developer Documentation. It was developed based on Retrofit2.

License

Foursquare4j is licensed under Apache 2 license.

Getting Started

It's really simple to use the client, first of all you need credentials, e.g. client_id and client_secret that must be requested at Foursquare Add App

The second step is create a object of br.com.thiagomoreira.foursquare.Foursquare class and start to invoke its methods. That's it!

import br.com.thiagomoreira.foursquare.Foursquare;
import br.com.thiagomoreira.foursquare.model.Venue;

public static void main(String[] args) {
    String clientId = "...";
    String clientSecret = "...";

    Foursquare foursquare = new Foursquare(clientId, clientSecret);

    Venue venue = foursquare.getVenue("4ef0e7cf7beb5932d5bdeb4e");

    System.out.println(venue.getId());
    System.out.println(venue.getName());
}

Which methods are implemented?

Yep, it is a small list. Can you help me? Look here: Contributing.

  • getVenue(String venueId)

Maven/Gradle

Foursquare4j is available on Maven central, the artifact is as follows:

Maven:

<dependency>
    <groupId>br.com.thiagomoreira.foursquare</groupId>
    <artifactId>foursquare4j</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle:

dependencies {
    compile(group: "br.com.thiagomoreira.foursquare", name: "foursquare4j", version: "1.0.0");
}

Support

Foursquare4j tracks bugs and feature requests with Github's issue system. Feel free to open your new ticket!

Contributing

Foursquare4j is a project based on Maven to improve it you just need to fork the repository, clone it and from the command line invoke

mvn package

After complete your work you can send a pull request to incorporate the modifications.

Enjoy!

Versions

Version
1.0.0