-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
29 lines (20 loc) · 773 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# clj-brightcove
Library for accessing the Brightcove Media API (http://http://docs.brightcove.com/en/media/)
## Usage
user=> (use '[brightcove.api :as bc])
nil
user=> (def *token* as "xxxxx")
#'user/*token*
user=> (bc/find-all-videos *token*)
user=> (bc/find-all-videos *token* {
:video_fields "id, name, playsTotal, playsTrailingWeek"
:custom_fields "agency"
:sort_by "PUBLISH_DATE"
:sort_order "desc"
})
user=> (bc/find-modified-videos *token* (quot (System/currentTimeMillis) 60000))
user=> (doseq [page (brightcove.api/find-all-videos *token*)]
(doall (map #((println "id:" (:id %) "; name:" (:name %))) (:items page))))
## License
Copyright (C) 2010 redentis
Distributed under the Eclipse Public License, the same as Clojure.