mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Format
This commit is contained in:
parent
3709a09d6b
commit
5b422a8089
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue