インタフェース Gateway

既知の実装クラスのリスト:
AbstractApiGateway, GithubApiGateway

public interface Gateway
The interface that abstracts the gateway. It provides a gateway for intuitive and easy access to the GitHub API.

If you have an API that you want to use with the GitHub API, you can use this interface without having to be aware of the various implementations and mechanisms required for communication. As a user, all you need to be aware of is to call each method defined in this interface and use the returned object. The object returned from methods of this interface has the same structure and items as the JSON data returned from each GitHub API.

For example, if you want to get the follower information associated with a particular user, you can call #getUserFollowers() like below.

 
 final GithubUser githubUser = GithubUser.builder().userName("username").build();
 final Gateway gateway = GithubApiGateway.from(githubUser);
 final List<UserFollowers> userFollowers = gateway.getUserFollowers();
 
 
導入されたバージョン:
1.0.0
  • メソッドの詳細