{"id":17134350,"url":"https://github.com/brianium/bestie","last_synced_at":"2025-03-24T06:16:37.048Z","repository":{"id":62431300,"uuid":"64095682","full_name":"brianium/bestie","owner":"brianium","description":"Best Buy API toolkit for Clojure","archived":false,"fork":false,"pushed_at":"2016-07-25T03:00:06.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:56:26.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-25T01:54:31.000Z","updated_at":"2016-07-25T02:47:58.000Z","dependencies_parsed_at":"2022-11-01T20:46:27.883Z","dependency_job_id":null,"html_url":"https://github.com/brianium/bestie","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fbestie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fbestie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fbestie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianium%2Fbestie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianium","download_url":"https://codeload.github.com/brianium/bestie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217945,"owners_count":20579300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T19:44:41.459Z","updated_at":"2025-03-24T06:16:37.022Z","avatar_url":"https://github.com/brianium.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"#bestie\n\n[![Clojars Project](https://img.shields.io/clojars/v/bestie.svg)](https://clojars.org/bestie)\n[![Build Status](https://travis-ci.org/brianium/bestie.svg?branch=master)](https://travis-ci.org/brianium/bestie)\n\nA Clojure library to work with the Best Buy API\n\n## Installation\n\nAdd the following dependency to your `project.clj` file:\n\n```\n[bestie \"0.1.0\"]\n```\n\n## Usage\n\n```clojure\n(ns my.app\n  (:require [bestie.core :refer :all]))\n\n;; Product Lookup Operation\n(def result (products {:apiKey \"my-api-key\"\n                       :search \"(upc=12345)\"}))\n\n;; results are futures containing response as a map\n(def realized @result);\n```\n\n## Functions\n\nThe main function is `request`. All functions are a specialization of this function.\n\n### `request`\n\n```clojure\n(defn request\n  ([api params config] ,,,)\n  ([api params] (request api params {})))\n\n```\n\n* `api` is a string representing the Best Buy API of interest - i.e \"items\"\n* `params` is a map that will be converted straight to query params\n* `config` is an optional map that gets fed right to [http-kit](http://www.http-kit.org/client.html)\n\nIf `params` contains a `:search` key it will structure the url using the search syntax specified in [Best Buy's API docs](https://bestbuyapis.github.io/api-documentation/#search-techniques).\n\nThere is currently one specialized function `products` which fills in the \"products\" api in the `request` function\n\n```clojure\n(defn products\n  ([params config] (request \"products\" params config))\n  ([params] (requeset \"products\" params)))\n```\n\n`request` has a single pre-condition defined to ensure the presence of the `:apiKey` key on the `params` map.\n\n## License\n\nCopyright © 2016 Brian Scaturro\n\nDistributed under the Eclipse Public License, the same as Clojure\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianium%2Fbestie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianium%2Fbestie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianium%2Fbestie/lists"}