Skip to content

Instantly share code, notes, and snippets.

View mklkj's full-sized avatar
🏠
Working from home

Mikołaj Pich mklkj

🏠
Working from home
View GitHub Profile
@mklkj
mklkj / Api.kt
Last active June 22, 2019 16:05 — forked from ar-android/Api.java
OkHttp With RxAndroid and RxJava
fun getData(): Single<Response> {
val client = OkHttpClient()
val request = Request.Builder()
.url("https://github.com/ar-android/panfic/raw/master/Panfic/gen/com/ocit/data.json")
.get()
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "ac8311d5-3876-ea1e-53d3-85f9e397ea21")
.build()