Skip to content
This repository

HTTPS clone URL

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

README
# 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.

Examples:

Generating password:

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

"somepassword5678"

Asking for products:

(shopify-read (struct request-credentials "xxx1234.myshopify.com" 
			    "apikey1234" "somepassword5678")
	      "/products")

{"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.