aliyun_sms v0.2.7 Aliyun.Sms.Response
Link to this section Summary
Functions
Parse response body
Link to this section Types
Link to this section Functions
Link to this function
parse(data)
parse(String.t()) :: {:ok, map()} | {:error, error_code(), String.t()}
Parse response body
Examples
iex> Aliyun.Sms.Response.parse("{\"Message\":\"OK\",\"RequestId\":\"9AFF0000-1B1B-2222-AA66-DD0000000000\",\"BizId\":\"965000000000000000^0\",\"Code\":\"OK\"}") {:ok, %{
"BizId" => "965000000000000000^0",
"Code" => "OK",
"Message" => "OK",
"RequestId" => "9AFF0000-1B1B-2222-AA66-DD0000000000"
}}