shopify v0.1.5 Shopify.ApplicationCredit
Summary
Functions
Requests all resources.
Returns {:ok, %Shopify.Response{}}
or {:error, %Shopify.Response{}}
Parameters
- session: A
%Shopify.Session{}
struct. - params: Any additional query params.
Examples
iex> Shopify.session |> Shopify.Product.all
{:ok, %Shopify.Response{}}
create(session, new_resource)
create(%Shopify.Session{access_token: term, api_key: term, client_id: term, client_secret: term, password: term, shop_name: term, type: term}, map) :: {:ok, list} | {:error, map}
Requests to create a new resource.
Returns {:ok, %Shopify.Response{}}
or {:error, %Shopify.Response{}}
Parameters
- session: A
%Shopify.Session{}
struct. - new_resource: A struct of the resource being created.
Examples
iex> Shopify.session |> Shopify.Product.create(%Shopify.Product{})
{:ok, %Shopify.Response{}}