My favorites
|
Sign in
cl-en
Echonest API support in Lisp
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
r5
Source path:
svn
/
trunk
/
api.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;;; -*- mode: lisp -*-
;; CL-EN
;; Copyright 2008 Ben Hyde <bhyde@pobox.com>
(in-package "ECHONEST")
(defun enqueue-for-analysis (mp3-file)
(let* ((pathname (pathname mp3-file))
(filename
(namestring (make-pathname :name (pathname-name pathname)
:type (pathname-type pathname)))))
(do-request
"upload" :post
`(("Filedata" ,pathname :filename ,filename)
("Filename" . ,filename)))))
(defun poll-for-analysis (id)
(do-request "xml" :get `(("id" . ,id))))
Show details
Hide details
Change log
r2
by bh...@pobox.com on Apr 11, 2008
Diff
Initial checkin
Go to:
/trunk
/trunk/README
/trunk/api.lisp
/trunk/basics.lisp
/trunk/cl-en.asd
/trunk/data-model.lisp
/trunk/key.txt
/trunk/packages.lisp
/trunk/rng
/trunk/rng/analysis.rng
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 549 bytes, 19 lines
View raw file
Hosted by