This is unofficial Venmo Java SDK implmented by wrapping https://github.com/mmohades/VenmoApiDocumentation
<repositories>
<repository>
<id>vicdus-venmo-unofficial-sdk</id>
<name>Venmo Unofficial SDK</name>
<url>https://vicdus.github.io/venmo-sdk/maven-repo/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.venmo.unofficial</groupId>
<artifactId>venmo-sdk</artifactId>
<version>0.1</version>
</dependency>
</dependencies>
Example:
package com.moyang.test;
import com.venmo.unofficial.*;
import com.venmo.unofficial.generated.GetStoriesResponse;
public class App {
public static void main(String[] args) {
// See https://github.com/mmohades/VenmoApiDocumentation#login to get access token
VenmoClient client = new VenmoClient("__YOUR_VERY_SECRET_ACCESS_TOKEN__");
int MAX_STORIES_PAGE = 5;
int count = 0;
String myUserId = client.GetMe().getData().getUser().getId();
GetStoriesResponse story = client.GetStories(myUserId);
System.out.println(story);
while (!story.getPagination().getNext().isEmpty() && count++ < MAX_STORIES_PAGE) {
story = client.GetStories(story.getPagination());
System.out.println(story);
}
}
}
How to develop this SDK
Make changes to ./src/main/proto/Venmo.proto
Then use it in ./src/main/java/com/venmo/unofficial/VenmoClient.java
mvn clean protobuf:compile compile
Then submit your PR
Bump version, and
mvn clean protobuf:compile compile package deploy