You are looking at historical revision 4757 of this page. It may differ significantly from its current revision.
(More information coming soon.)
Authenticating with Freebase
While Metaweb is rolling out and scaling up Freebase, the API can only be accessed by users who have a Freebase account (currently invitation-only). Thus, you must use metaweb-login! to establish a cookie-based session before using any of the other API procedures provided by this egg.
#;1> (use metaweb) (metaweb-login! "myuser" "secret123")
Querying Freebase for album information
#;1> (use metaweb) (metaweb-query type: "/music/artist" name: "The Police" album: ())
[procedure] (metaweb-current-base-uri [BASE-URI])
[procedure] (metaweb-current-headers [HEADERS])
[procedure] (metaweb-login! USERNAME PASSWORD)
[procedure] (metaweb-query QUERY ...)
[procedure] (metaweb-download ...)
[procedure] (metaweb-create! ...)
[procedure] (metaweb-upload! ...)
Copyright (c) 2007 Arto Bendiken. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Not released yed, but available from SVN in very early alpha form.