My favorites | Sign in
Project Logo
                
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: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 549 bytes, 19 lines
Hosted by Google Code