728x90
반응형
google에 retrofit2 검색하여 아래 사이트 확인하면 간단한 사용법을 확인할 수 있다.
https://square.github.io/retrofit/
Retrofit
A type-safe HTTP client for Android and Java
square.github.io
Retrofit Configuration 탭으로 이동하여 사용한 Converter를 정한다.
정했으면 아래 원하는 링크를 눌러 github로 이동하여 버전과 gradle설정을 가져온다.
ex> gson 일 경우 https://github.com/google/gson로 이동하여 복사 gradle 설정 복사(implementation 'com.google.code.gson:gson:2.9.0')
다운로드 탭으로 이동하면 gradle 설정을 확인할 수 있다.
gradle 설정 및 proguard 설명이 있으니 이후 proguard적용 시 확인하여 적용이 필요하다.
우선 최신 버전 확인을 위해 github로 이동한다.
https://github.com/square/retrofit
GitHub - square/retrofit: A type-safe HTTP client for Android and the JVM
A type-safe HTTP client for Android and the JVM. Contribute to square/retrofit development by creating an account on GitHub.
github.com
버전을 확인하고 retrofit에 사용한 Converter를 app gradle에 추가해준다.
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
추가로 로그를 보기 위해 logging-interceptor 도 추가해 준다(https://square.github.io/okhttp/features/interceptors/)
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
데이터 클래스 만들고
import com.google.gson.annotations.SerializedName
data class Repo(
@SerializedName("id") val id: Long,
@SerializedName("node_id") val node_id: String,
@SerializedName("name") val name: String)
Retrofit 서비스 만들고
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Path
interface ApiService {
@GET("users/{user}/repos")
fun listRepos(@Path("user") user: String): Call<List<Repo>>
}
프래그먼트에 래트로핏 인스턴스 만들고 사용하면
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
viewModel = ViewModelProvider(this)[MainViewModel::class.java]
val logging = HttpLoggingInterceptor()
logging.setLevel(HttpLoggingInterceptor.Level.BODY)
val client: OkHttpClient = OkHttpClient.Builder()
.addInterceptor(logging)
.build()
val retrofit = Retrofit.Builder()
.baseUrl("https://api.github.com/")
.addConverterFactory(GsonConverterFactory.create())
.client(client)
.build()
val service = retrofit.create(ApiService::class.java)
val repos = service.listRepos("octocat")
repos.enqueue(object : Callback<List<Repo>>{
override fun onResponse(call: Call<List<Repo>>, response: Response<List<Repo>>) {
}
override fun onFailure(call: Call<List<Repo>>, t: Throwable) {
}
})
}
Http 클라이언트에 추가한 HttpLoggingInterceptor로 인해 로그를 볼 수 있다.
I/okhttp.OkHttpClient: --> GET https://api.github.com/users/octocat/repos
I/okhttp.OkHttpClient: --> END GET
I/okhttp.OkHttpClient: <-- 200 https://api.github.com/users/octocat/repos (457ms)
I/okhttp.OkHttpClient: [{"id":132935648,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI5MzU2NDg=","name":"boysenberry-repo-1","full_name":"octocat/boysenberry-repo-1","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/boysenberry-repo-1","description":"Testing","fork":true,"url":"https://api.github.com/repos/octocat/boysenberry-repo-1","forks_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/forks","keys_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/teams","hooks_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/hooks","issue_events_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/events","assignees_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/tags","blobs_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/languages","stargazers_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/stargazers","contributors_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/contributors","subscribers_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/subscribers","subscription_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/subscription","commits_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/merges","archive_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/downloads","issues_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/miles
I/okhttp.OkHttpClient: tones{/number}","notifications_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/labels{/name}","releases_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/boysenberry-repo-1/deployments","created_at":"2018-05-10T17:51:29Z","updated_at":"2022-06-22T00:36:15Z","pushed_at":"2018-05-10T17:52:17Z","git_url":"git://github.com/octocat/boysenberry-repo-1.git","ssh_url":"git@github.com:octocat/boysenberry-repo-1.git","clone_url":"https://github.com/octocat/boysenberry-repo-1.git","svn_url":"https://github.com/octocat/boysenberry-repo-1","homepage":"","size":4,"stargazers_count":81,"watchers_count":81,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":9,"open_issues":0,"watchers":81,"default_branch":"master"},{"id":18221276,"node_id":"MDEwOlJlcG9zaXRvcnkxODIyMTI3Ng==","name":"git-consortium","full_name":"octocat/git-consortium","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/git-consortium","description":"This repo is for demonstration purposes only.","fork":false,"url":"https://api.github.com/repos/octocat/git-consortium","forks_url":"https://api.github.com/repos/octocat/git-consortium/forks","keys_url":"https://api.github.com/repos/octocat/git-consortium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/git-consortium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/git-consortium/teams","hooks_url":"https://api.github.com/repos/octocat/git-consortium/hooks","issue_events_url":"https://api.github.com/repos/octocat/git-consortium/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/git-consortium/events","assignees_url":"https://api.github.com/repos/octocat/git-consortium/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/git-consortium/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/git-consortium/tags","blobs_url":"https://api.github.com/repos/octocat/git-consortium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/git-consortium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/git-consortium/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/git-consortium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/git-consortium/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/git-consortium/languages","stargazers_url":"https://api.github.com/repos/octocat/git-consortium/stargazers","contributors_url":"https://api.github.com/repos/octocat/git-consortium/contributors","subscribers_url":"https://api.github.com/repos/octocat/git-consortium/subscribers","subscription_url":"https://api.github.com/repos/o
I/okhttp.OkHttpClient: ctocat/git-consortium/subscription","commits_url":"https://api.github.com/repos/octocat/git-consortium/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/git-consortium/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/git-consortium/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/git-consortium/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/git-consortium/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/git-consortium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/git-consortium/merges","archive_url":"https://api.github.com/repos/octocat/git-consortium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/git-consortium/downloads","issues_url":"https://api.github.com/repos/octocat/git-consortium/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/git-consortium/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/git-consortium/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/git-consortium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/git-consortium/labels{/name}","releases_url":"https://api.github.com/repos/octocat/git-consortium/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/git-consortium/deployments","created_at":"2014-03-28T17:55:38Z","updated_at":"2022-06-22T00:36:11Z","pushed_at":"2022-06-09T04:31:24Z","git_url":"git://github.com/octocat/git-consortium.git","ssh_url":"git@github.com:octocat/git-consortium.git","clone_url":"https://github.com/octocat/git-consortium.git","svn_url":"https://github.com/octocat/git-consortium","homepage":null,"size":190,"stargazers_count":115,"watchers_count":115,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":66,"open_issues":35,"watchers":115,"default_branch":"master"},{"id":20978623,"node_id":"MDEwOlJlcG9zaXRvcnkyMDk3ODYyMw==","name":"hello-worId","full_name":"octocat/hello-worId","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/hello-worId","description":"My first repository on GitHub.","fork":false,"url":"https://api.github.com/repos/octocat/hello-worId","forks_url":"https://api.github.com/repos/octocat/hello-worId/forks","keys_url":"https://api.github.com/repos/octocat/hello-worId/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/hello-worId/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/hello-worId/teams","hooks_url":"https://api.github.com/repos/octocat/hello-worId/hooks","issue_events_url":"https://api.github.com/repos/octocat/hello-worId/issues/events{/number}","events_
I/okhttp.OkHttpClient: url":"https://api.github.com/repos/octocat/hello-worId/events","assignees_url":"https://api.github.com/repos/octocat/hello-worId/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/hello-worId/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/hello-worId/tags","blobs_url":"https://api.github.com/repos/octocat/hello-worId/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/hello-worId/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/hello-worId/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/hello-worId/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/hello-worId/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/hello-worId/languages","stargazers_url":"https://api.github.com/repos/octocat/hello-worId/stargazers","contributors_url":"https://api.github.com/repos/octocat/hello-worId/contributors","subscribers_url":"https://api.github.com/repos/octocat/hello-worId/subscribers","subscription_url":"https://api.github.com/repos/octocat/hello-worId/subscription","commits_url":"https://api.github.com/repos/octocat/hello-worId/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/hello-worId/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/hello-worId/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/hello-worId/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/hello-worId/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/hello-worId/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/hello-worId/merges","archive_url":"https://api.github.com/repos/octocat/hello-worId/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/hello-worId/downloads","issues_url":"https://api.github.com/repos/octocat/hello-worId/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/hello-worId/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/hello-worId/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/hello-worId/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/hello-worId/labels{/name}","releases_url":"https://api.github.com/repos/octocat/hello-worId/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/hello-worId/deployments","created_at":"2014-06-18T21:26:19Z","updated_at":"2022-06-22T00:36:13Z","pushed_at":"2022-04-05T23:58:50Z","git_url":"git://github.com/octocat/hello-worId.git","ssh_url":"git@github.com:octocat/hello-worId.git","clone_url":"https://github.com/octocat/hello-worId.git","svn_url":"https://github.com/octocat/hello-worId","homepage":null,"size":160,"stargazers_count":157,"watchers_count":157,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":33,"license":null,"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":106,"open_issues":33,"watchers":157,"default_branch":"master"},{"id":1296269,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk2MjY5","name":"Hello-World","full_name":"octocat/Hello-World","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos
I/okhttp.OkHttpClient: _url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/Hello-World","description":"My first repository on GitHub!","fork":false,"url":"https://api.github.com/repos/octocat/Hello-World","forks_url":"https://api.github.com/repos/octocat/Hello-World/forks","keys_url":"https://api.github.com/repos/octocat/Hello-World/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/Hello-World/teams","hooks_url":"https://api.github.com/repos/octocat/Hello-World/hooks","issue_events_url":"https://api.github.com/repos/octocat/Hello-World/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/Hello-World/events","assignees_url":"https://api.github.com/repos/octocat/Hello-World/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/Hello-World/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/Hello-World/tags","blobs_url":"https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/Hello-World/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/Hello-World/languages","stargazers_url":"https://api.github.com/repos/octocat/Hello-World/stargazers","contributors_url":"https://api.github.com/repos/octocat/Hello-World/contributors","subscribers_url":"https://api.github.com/repos/octocat/Hello-World/subscribers","subscription_url":"https://api.github.com/repos/octocat/Hello-World/subscription","commits_url":"https://api.github.com/repos/octocat/Hello-World/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/Hello-World/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/Hello-World/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/Hello-World/merges","archive_url":"https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/Hello-World/downloads","issues_url":"https://api.github.com/repos/octocat/Hello-World/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/Hello-World/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/Hello-World/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/Hello-World/labels{/name}","releases_url":"https://api.github.com/repos/octocat/Hello-World/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/Hello-World/deployments","created_at":"2011-01-26T19:01:12Z","updated_at":"2022-06-22T00:36:18Z","pushed_at":"2022-06-10T04:27:36Z","git_url":"git://github.com/octocat/Hello-World.git","ssh_url":"git@github.com:octocat/Hello-World.git","clone_url":"https://github.com/octocat/Hello-World.git","svn_url":"https://github.com/octocat/Hello-World","homepage":"","size":1,"stargazers_count":1930,"watchers_count":1930,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1775,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":885,"license":null,"allow_forking":true,"is_template":false,"topics":[],"vis
I/okhttp.OkHttpClient: ibility":"public","forks":1775,"open_issues":885,"watchers":1930,"default_branch":"master"},{"id":64778136,"node_id":"MDEwOlJlcG9zaXRvcnk2NDc3ODEzNg==","name":"linguist","full_name":"octocat/linguist","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/linguist","description":"Language Savant. If your repository's language is being reported incorrectly, send us a pull request!","fork":true,"url":"https://api.github.com/repos/octocat/linguist","forks_url":"https://api.github.com/repos/octocat/linguist/forks","keys_url":"https://api.github.com/repos/octocat/linguist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/linguist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/linguist/teams","hooks_url":"https://api.github.com/repos/octocat/linguist/hooks","issue_events_url":"https://api.github.com/repos/octocat/linguist/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/linguist/events","assignees_url":"https://api.github.com/repos/octocat/linguist/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/linguist/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/linguist/tags","blobs_url":"https://api.github.com/repos/octocat/linguist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/linguist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/linguist/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/linguist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/linguist/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/linguist/languages","stargazers_url":"https://api.github.com/repos/octocat/linguist/stargazers","contributors_url":"https://api.github.com/repos/octocat/linguist/contributors","subscribers_url":"https://api.github.com/repos/octocat/linguist/subscribers","subscription_url":"https://api.github.com/repos/octocat/linguist/subscription","commits_url":"https://api.github.com/repos/octocat/linguist/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/linguist/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/linguist/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/linguist/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/linguist/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/linguist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/linguist/merges","archive_url":"https://api.github.com/repos/octocat/linguist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/linguist/downloads","issues_url":"https://api.github.com/repos/octocat/linguist/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/linguist/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/linguist/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/linguist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/l
I/okhttp.OkHttpClient: inguist/labels{/name}","releases_url":"https://api.github.com/repos/octocat/linguist/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/linguist/deployments","created_at":"2016-08-02T17:35:14Z","updated_at":"2022-06-22T00:36:17Z","pushed_at":"2022-06-12T06:14:09Z","git_url":"git://github.com/octocat/linguist.git","ssh_url":"git@github.com:octocat/linguist.git","clone_url":"https://github.com/octocat/linguist.git","svn_url":"https://github.com/octocat/linguist","homepage":"","size":32899,"stargazers_count":150,"watchers_count":150,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":139,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":139,"open_issues":11,"watchers":150,"default_branch":"master"},{"id":17881631,"node_id":"MDEwOlJlcG9zaXRvcnkxNzg4MTYzMQ==","name":"octocat.github.io","full_name":"octocat/octocat.github.io","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/octocat.github.io","description":null,"fork":false,"url":"https://api.github.com/repos/octocat/octocat.github.io","forks_url":"https://api.github.com/repos/octocat/octocat.github.io/forks","keys_url":"https://api.github.com/repos/octocat/octocat.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/octocat.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/octocat.github.io/teams","hooks_url":"https://api.github.com/repos/octocat/octocat.github.io/hooks","issue_events_url":"https://api.github.com/repos/octocat/octocat.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/octocat.github.io/events","assignees_url":"https://api.github.com/repos/octocat/octocat.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/octocat.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/octocat.github.io/tags","blobs_url":"https://api.github.com/repos/octocat/octocat.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/octocat.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/octocat.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/octocat.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/octocat.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/octocat.github.io/languages","stargazers_url":"https://api.github.com/repos/octocat/octocat.github.io/stargazers","contributors_url":"https://api.github.com/repos/octocat/octocat.github.io/contributors","subscribers_url":"https://api.github.com/repos/octocat/octocat.github.io/subscribers","subscription_url":"https://api.github.com/repos/octocat/octocat.github.io/subscription","commits_url":"https://api.github.com/repos/octocat/octo
I/okhttp.OkHttpClient: cat.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/octocat.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/octocat.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/octocat.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/octocat.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/octocat.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/octocat.github.io/merges","archive_url":"https://api.github.com/repos/octocat/octocat.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/octocat.github.io/downloads","issues_url":"https://api.github.com/repos/octocat/octocat.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/octocat.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/octocat.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/octocat.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/octocat.github.io/labels{/name}","releases_url":"https://api.github.com/repos/octocat/octocat.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/octocat.github.io/deployments","created_at":"2014-03-18T20:54:39Z","updated_at":"2022-06-22T00:36:20Z","pushed_at":"2022-06-14T12:11:55Z","git_url":"git://github.com/octocat/octocat.github.io.git","ssh_url":"git@github.com:octocat/octocat.github.io.git","clone_url":"https://github.com/octocat/octocat.github.io.git","svn_url":"https://github.com/octocat/octocat.github.io","homepage":null,"size":335,"stargazers_count":192,"watchers_count":192,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":179,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":114,"license":null,"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":179,"open_issues":114,"watchers":192,"default_branch":"master"},{"id":1300192,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAwMTky","name":"Spoon-Knife","full_name":"octocat/Spoon-Knife","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/Spoon-Knife","description":"This repo is for demonstration purposes only.","fork":false,"url":"https://api.github.com/repos/octocat/Spoon-Knife","forks_url":"https://api.github.com/repos/octocat/Spoon-Knife/forks","keys_url":"https://api.github.com/repos/octocat/Spoon-Knife/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/Spoon-Knife/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/Spoon-Knife/teams","hooks_url":"https://api.github.com/repos/octocat/Spoon-Knife/hooks","issue_events_url":"https://api.github.com/repos/octocat/Spoon-Knife/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/Spoon-Knife/events","assignees_url":"https://api.github.com/repos/octocat/Spoon-Knife/assignee
I/okhttp.OkHttpClient: s{/user}","branches_url":"https://api.github.com/repos/octocat/Spoon-Knife/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/Spoon-Knife/tags","blobs_url":"https://api.github.com/repos/octocat/Spoon-Knife/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/Spoon-Knife/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/Spoon-Knife/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/Spoon-Knife/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/Spoon-Knife/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/Spoon-Knife/languages","stargazers_url":"https://api.github.com/repos/octocat/Spoon-Knife/stargazers","contributors_url":"https://api.github.com/repos/octocat/Spoon-Knife/contributors","subscribers_url":"https://api.github.com/repos/octocat/Spoon-Knife/subscribers","subscription_url":"https://api.github.com/repos/octocat/Spoon-Knife/subscription","commits_url":"https://api.github.com/repos/octocat/Spoon-Knife/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/Spoon-Knife/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/Spoon-Knife/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/Spoon-Knife/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/Spoon-Knife/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/Spoon-Knife/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/Spoon-Knife/merges","archive_url":"https://api.github.com/repos/octocat/Spoon-Knife/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/Spoon-Knife/downloads","issues_url":"https://api.github.com/repos/octocat/Spoon-Knife/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/Spoon-Knife/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/Spoon-Knife/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/Spoon-Knife/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/Spoon-Knife/labels{/name}","releases_url":"https://api.github.com/repos/octocat/Spoon-Knife/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/Spoon-Knife/deployments","created_at":"2011-01-27T19:30:43Z","updated_at":"2022-06-22T00:36:21Z","pushed_at":"2022-06-22T01:59:36Z","git_url":"git://github.com/octocat/Spoon-Knife.git","ssh_url":"git@github.com:octocat/Spoon-Knife.git","clone_url":"https://github.com/octocat/Spoon-Knife.git","svn_url":"https://github.com/octocat/Spoon-Knife","homepage":"","size":2,"stargazers_count":11099,"watchers_count":11099,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":127420,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":14765,"license":null,"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":127420,"open_issues":14765,"watchers":11099,"default_branch":"main"},{"id":56271164,"node_id":"MDEwOlJlcG9zaXRvcnk1NjI3MTE2NA==","name":"test-repo1","full_name":"octocat/test-repo1","private":false,"owner":{"login":"octocat","id":583231,"node_id":"MDQ6VXNlcjU4MzIzMQ==","avatar_url":"https://avatars.githubusercontent.com/u/583231?v=4","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}",
I/okhttp.OkHttpClient: "received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octocat/test-repo1","description":null,"fork":false,"url":"https://api.github.com/repos/octocat/test-repo1","forks_url":"https://api.github.com/repos/octocat/test-repo1/forks","keys_url":"https://api.github.com/repos/octocat/test-repo1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octocat/test-repo1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octocat/test-repo1/teams","hooks_url":"https://api.github.com/repos/octocat/test-repo1/hooks","issue_events_url":"https://api.github.com/repos/octocat/test-repo1/issues/events{/number}","events_url":"https://api.github.com/repos/octocat/test-repo1/events","assignees_url":"https://api.github.com/repos/octocat/test-repo1/assignees{/user}","branches_url":"https://api.github.com/repos/octocat/test-repo1/branches{/branch}","tags_url":"https://api.github.com/repos/octocat/test-repo1/tags","blobs_url":"https://api.github.com/repos/octocat/test-repo1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octocat/test-repo1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octocat/test-repo1/git/refs{/sha}","trees_url":"https://api.github.com/repos/octocat/test-repo1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octocat/test-repo1/statuses/{sha}","languages_url":"https://api.github.com/repos/octocat/test-repo1/languages","stargazers_url":"https://api.github.com/repos/octocat/test-repo1/stargazers","contributors_url":"https://api.github.com/repos/octocat/test-repo1/contributors","subscribers_url":"https://api.github.com/repos/octocat/test-repo1/subscribers","subscription_url":"https://api.github.com/repos/octocat/test-repo1/subscription","commits_url":"https://api.github.com/repos/octocat/test-repo1/commits{/sha}","git_commits_url":"https://api.github.com/repos/octocat/test-repo1/git/commits{/sha}","comments_url":"https://api.github.com/repos/octocat/test-repo1/comments{/number}","issue_comment_url":"https://api.github.com/repos/octocat/test-repo1/issues/comments{/number}","contents_url":"https://api.github.com/repos/octocat/test-repo1/contents/{+path}","compare_url":"https://api.github.com/repos/octocat/test-repo1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octocat/test-repo1/merges","archive_url":"https://api.github.com/repos/octocat/test-repo1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octocat/test-repo1/downloads","issues_url":"https://api.github.com/repos/octocat/test-repo1/issues{/number}","pulls_url":"https://api.github.com/repos/octocat/test-repo1/pulls{/number}","milestones_url":"https://api.github.com/repos/octocat/test-repo1/milestones{/number}","notifications_url":"https://api.github.com/repos/octocat/test-repo1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octocat/test-repo1/labels{/name}","releases_url":"https://api.github.com/repos/octocat/test-repo1/releases{/id}","deployments_url":"https://api.github.com/repos/octocat/test-repo1/deployments","created_at":"2016-04-14T21:29:25Z","updated_at":"2022-06-22T00:36:13Z","pushed_at":"2018-08-10T17:10:29Z","git_url":"git://github.com/octocat/test-repo1.git","ssh_url":"git@github.com:octocat/test-repo1.git","clone_url":"https://github.com/octocat/test-repo1.git","svn_url":"https://github.com/octocat/test-repo1","homepage":null,"size":1,"stargazers_count":74,"watchers_count":74,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"allow_forking":true,"is_template":false,"topics":[],"visibility":"public","forks":13,"open_issues":0,"watchers":74,"default_branch":"gh-pages"}]
I/okhttp.OkHttpClient: <-- END HTTP (39893-byte body)
반응형
'Development > Android' 카테고리의 다른 글
[android] Exception occurred while executing 'install-incremental' (0) | 2022.07.20 |
---|---|
[android] Koin 적용하기 (0) | 2022.06.22 |
[android] 사용하지 않는 리소스(Unused resources) 삭제 (0) | 2022.05.11 |
[android] touch event flow (0) | 2022.05.06 |
[android] 안드로이드 필요한곳만 라운드처리하기 (0) | 2022.04.26 |
댓글