创建客户端实例
以下是使用GsonConverterFactory类生成一个使用Gson进行反序列化的GitHubService接口实现类的示例.
Retrofit retrofit = new Retrofit.Builder()
.baseUrl("https://api.github.com")
.addConverterFactory(GsonConverterFactory.create())
.build();
GitHubService service = retrofit.create(GitHubService.class);
GitHubService(interface) 实例已被创建