{"id":19240159,"url":"https://github.com/gleapsdk/okhttpinterceptor","last_synced_at":"2025-07-16T01:44:39.267Z","repository":{"id":57735518,"uuid":"419319481","full_name":"GleapSDK/OKHttpInterceptor","owner":"GleapSDK","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-05T10:14:38.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-04T21:04:15.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GleapSDK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-20T12:26:28.000Z","updated_at":"2021-11-16T07:43:35.000Z","dependencies_parsed_at":"2022-08-23T20:30:34.624Z","dependency_job_id":null,"html_url":"https://github.com/GleapSDK/OKHttpInterceptor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GleapSDK/OKHttpInterceptor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GleapSDK%2FOKHttpInterceptor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GleapSDK%2FOKHttpInterceptor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GleapSDK%2FOKHttpInterceptor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GleapSDK%2FOKHttpInterceptor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GleapSDK","download_url":"https://codeload.github.com/GleapSDK/OKHttpInterceptor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GleapSDK%2FOKHttpInterceptor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265474815,"owners_count":23772421,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T17:06:12.424Z","updated_at":"2025-07-16T01:44:39.204Z","avatar_url":"https://github.com/GleapSDK.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gleap Android OKHttpInterceptor\n\n![Gleap Android SDK Intro](https://raw.githubusercontent.com/GleapSDK/iOS-SDK/main/imgs/gleapheader.png)\n\nIntercept your okhttp requests on andoird. This library uses [OkHttp](https://square.github.io/okhttp/) and [GleapSDK](https://github.com/GleapSDK/Android-SDK).\n\n## Docs \u0026 Examples\nCheckout our [documentation](https://docs.gleap.io/android/network-logs) for full reference.\n\n## Installation with Maven\n\nOpen your project in your favorite IDE. (e.g. Android Studio). Open the **build.gradle** of your project.\n\n**Scroll down to the dependencies**\n\n```\ndependencies {\n...\n}\n```\n\n**Add the OkHttp-Interceptor to your dependencies**\n\n```\ndependencies {\n...\nimplementation group: 'io.gleap', name: 'gleap-okhttp-interceptor', version: '1.0.0'\n}\n\n```\n\nSync the gradle file to start the download of the library. 🎉\n\n\n**Use the Interceptor**\n\nThis is the example of okhttp for intercepting request with a small adaption.\n\n```\nimport io.gleap.GleapOkHttpInterceptor;\n\n....\nOkHttpClient client = new OkHttpClient.Builder()\n    .addInterceptor(new GleapOkHttpInterceptor())\n    .build();\n\nRequest request = new Request.Builder()\n    .url(\"http://www.publicobject.com/helloworld.txt\")\n    .header(\"User-Agent\", \"OkHttp Example\")\n    .build();\n\nResponse response = client.newCall(request).execute();\nresponse.body().close();\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleapsdk%2Fokhttpinterceptor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgleapsdk%2Fokhttpinterceptor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgleapsdk%2Fokhttpinterceptor/lists"}