AC
curl GET 'https://api.gotinder.com/v2/recs/core' \Вот код (все как в доках):
--header 'X-Auth-Token: <my-token-here>'
(ns tinderwrap.feedв ответ такое, в логах cljs ничего подозрительного нет:
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [tinderwrap.app-db :as db]
[cljs-http.client :as http]
[cljs.core.async :refer [<!]]))
(go (let [response (<! (http/get "https://api.gotinder.com/v2/recs/core"
{:with-credentials? false
:headers {"X-Auth-Token" "<my-token-here>"}
}))]
(prn (:status response))
(prn (-> response))))
{:status 0, :success false, :body "", :headers {}, :trace-redirects ["https://api.gotinder.com/v2/recs/core" "https://api.gotinder.com/v2/recs/core"], :error-code :http-error, :error-text " [0]"}