View Source DataForSeo.Client (DataForSeo v0.6.0)

Provides basic and common functionalities for DataForSeo API based on Finch.

Link to this section Summary

Link to this section Functions

Link to this function

basic_auth_header(username, password)

View Source

Generates basic Auth header from the given username and password

example

Example

iex> DataForSeo.Client.basic_auth_header("user", "hello") {"Authorization", "Basic dXNlcjpoZWxsbw=="}

Link to this function

decode_json_response(error, opts \\ [])

View Source
Link to this function

delete_request(url, query_params \\ [], headers \\ [], opts \\ [])

View Source
Link to this function

get(path, query_params \\ [])

View Source
Link to this function

get_request(url, query_params \\ [], headers \\ [], body \\ nil, opts \\ [])

View Source
Link to this function

patch_request(url, query_params \\ [], body \\ %{}, headers \\ [], opts \\ [])

View Source
Link to this function

post(path, query_params \\ [])

View Source
Link to this function

post_request(url, query_params \\ [], body \\ %{}, headers \\ [], opts \\ [])

View Source
Link to this function

put_request(url, query_params \\ [], body \\ %{}, headers \\ [], opts \\ [])

View Source
Link to this function

validate_status_code(ok, ok_statuses \\ [200])

View Source