fix api
This commit is contained in:
parent
4f6df41b04
commit
224e9343f7
@ -47,10 +47,9 @@ get_network(Id) when is_integer(Id) ->
|
|||||||
Error
|
Error
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% todo
|
|
||||||
-spec auth_access_token(Params :: map()) -> {ok, Resp :: map()} | {error, Reason :: any()}.
|
-spec auth_access_token(Params :: map()) -> {ok, Resp :: map()} | {error, Reason :: any()}.
|
||||||
auth_access_token(Params) when is_map(Params) ->
|
auth_access_token(Params) when is_map(Params) ->
|
||||||
case catch do_post("auth_access_token", Params) of
|
case catch do_post("auth/access_token", Params) of
|
||||||
{ok, Resp} ->
|
{ok, Resp} ->
|
||||||
case catch jiffy:decode(Resp, [return_maps]) of
|
case catch jiffy:decode(Resp, [return_maps]) of
|
||||||
Result when is_map(Result) ->
|
Result when is_map(Result) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user