websms.ch client
The package can be installed by adding websms
to your list of dependencies
in mix.exs
:
def deps do
[
{:websms, "~> 0.1.0"}
]
end
{:ok,
{200, %{smsCount: 0, statusCode: 2000, statusMessage: "OK", transferId: _}, _client}} =
Websms.post_smsmessaging_text(%{
body: %{
messageContent: "Test",
test: true,
recipientAddressList: ["+41787245790"]
},
headers: %{"authorization" => "Bearer #{@auth_token}"}
})
{:ok,
{200, %{smsCount: 0, statusCode: 2000, statusMessage: "OK", transferId: _}, _client}} =
Websms.post_smsmessaging_binary(%{
body: %{
messageContent: [Base.encode64("Test")],
test: true,
recipientAddressList: ["+41787245790"]
},
headers: %{"authorization" => "Bearer #{@auth_token}"}
})
Documentation can be generated with ExDoc and published on HexDocs. The docs can be found at https://hexdocs.pm/websms.