Skip to content

Instantly share code, notes, and snippets.

@adrianparvino
Created June 8, 2019 22:14
Show Gist options
  • Save adrianparvino/bbf7481d719fd66ef2d2e4aa57a362f0 to your computer and use it in GitHub Desktop.
Save adrianparvino/bbf7481d719fd66ef2d2e4aa57a362f0 to your computer and use it in GitHub Desktop.
iex([email protected])14> x = self(); Node.spawn_link(:"[email protected]", fn -> send x, TermuxSmsCli.Fetcher.start_link([]) end); {:ok, pid} = receive do x -> x end
{:ok, #PID<16052.226.0>}
iex([email protected])15> TermuxSmsCli.Fetcher.fetch(pid, 1)
[
%{
"body" => "You have up to 1GB of VIDEO EVERY DAY with your GIGA subscription. To check your balance and other exciting offers, dial *121# NOW! It's FREE and easy!",
"number" => "SMART",
"read" => true,
"received" => "2019-06-09 01:38",
"threadid" => 1,
"type" => "inbox"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment