Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Very basic API bindings for Clojure

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

# shopify-clj

Shopify API adapter for Clojure.

## Usage

To generate password from parameters received in URL just pass them as second
parameter (as struct) to generate-password function, along with secret value
as first parameter. To use API method just pass map with parameters to
function like shopify-(verb), where verb can be any of read, create, update
and delete as first parameter and route as "/action" string,
e.g. "/products". Optional third parameter specifies parameter map.


Generating password:

user> (generate-password "sharedsecret1234"
			 {"shop" "", "timestamp" "1133831885", 
			 "signature" "ssssssssssssssssssssssssssssssss", "t" "tttttttttttttttttttttttttttttttt"})


Asking for products:

(shopify-read (struct request-credentials "" 
			    "apikey1234" "somepassword5678")

{"products" ...}

## License

Copyright (C) 2011 FIXME

Distributed under the Eclipse Public License, the same as Clojure.
Something went wrong with that request. Please try again.