This commit is contained in:
byte[] 2022-01-21 15:37:43 -05:00
parent 3709a09d6b
commit 5b422a8089

View file

@ -68,7 +68,9 @@ defmodule Philomena.Scrapers.Twitter do
[bearer] = Regex.run(@bearer_regex, body, capture: :all_but_first) [bearer] = Regex.run(@bearer_regex, body, capture: :all_but_first)
{:ok, %{body: body}} = Philomena.Http.post(@activate_url, nil, [{"Authorization", "Bearer #{bearer}"}]) {:ok, %{body: body}} =
Philomena.Http.post(@activate_url, nil, [{"Authorization", "Bearer #{bearer}"}])
gt = Map.fetch!(Jason.decode!(body), "guest_token") gt = Map.fetch!(Jason.decode!(body), "guest_token")
{gt, bearer} {gt, bearer}