Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
/ pradpi Public archive

A Clojure library to simplify working with the Amazon Product Advertising API

License

Notifications You must be signed in to change notification settings

brianium/pradpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pradpi

Build Status Clojars Project

A Clojure library designed to simplify working with the Amazon Product Advertising API

Installation

Add the following dependency to your project.clj file:

[pradpi "0.3.0"]

Usage

(ns my-amazon.app
  (:require [pradpi.core :refer :all]))

;; minimum config map needed for requests
(def config {:associate-tag "my-tag"
             :key-id "my-id"
             :secret "my-secret"})

;; ItemLookup operation 
(def result (item-lookup config {:IdType "UPC"
                                 :ItemId "862583000163"
                                 :SearchIndex "Toys"}))

;; results are futures containing response as a map
(def realized @result);

Functions

All functions have the signature [protocol config params] or [config params] to default to http

The config param contains AWS credentials. Any additional properties in this map will be forwarded to the underlying http kit client.

Currently there is one specialized function of item-lookup. item-lookup just wraps the core request function. request has the signature [operation protocol config params]

License

Copyright © 2016 Brian Scaturro

Distributed under the Eclipse Public License, the same as Clojure

About

A Clojure library to simplify working with the Amazon Product Advertising API

Resources

License

Stars

Watchers

Forks

Packages

No packages published