Created
August 18, 2019 08:37
-
-
Save shahryarjb/bc1a74bb70378ce5a32653dccf116fef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test(user_purchases_token, access_token) do | |
HTTPoison.get("https://pardakht.cafebazaar.ir/devapi/v2/api/applications/com.bankerror/subscriptions/SignUp/purchases/#{user_purchases_token}?access_token=#{access_token}") | |
end | |
# back | |
%HTTPoison.Response{ | |
body: "", | |
headers: [ | |
{"Date", "Sun, 18 Aug 2019 08:32:59 GMT"}, | |
{"Content-Type", "text/html; charset=utf-8"}, | |
{"Content-Length", "0"}, | |
{"Connection", "keep-alive"}, | |
{"Server", "nginx/1.15.6"}, | |
{"Content-Language", "fa-IR"}, | |
{"Vary", "Accept-Language"}, | |
{"Location", | |
"/devapi/v2/api/applications/com.bankerror/subscriptions/SignUp/purchases/tuRTaARTTQoXbC2h/?access_token=r1rd1f9PcTQosJe4inKqA2fUNRx9CG"}, | |
{"X-Frame-Options", "SAMEORIGIN"} | |
], | |
request: %HTTPoison.Request{ | |
body: "", | |
headers: [], | |
method: :get, | |
options: [], | |
params: %{}, | |
url: "https://pardakht.cafebazaar.ir/devapi/v2/api/applications/com.bankerror/subscriptions/SignUp/purchases/tuRTaARTTQoXbC2h?access_token=r1rd1f9PcTQosJe4inKqA2fUNRx9CG" | |
}, | |
request_url: "https://pardakht.cafebazaar.ir/devapi/v2/api/applications/com.bankerror/subscriptions/SignUp/purchases/tuRTaARTTQoXbC2h?access_token=r1rd1f9PcTQosJe4inKqA2fUNRx9CG", | |
status_code: 301 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment