fxb / php-last.fm-api Goto Github PK
View Code? Open in Web Editor NEWlast.fm API bindings for PHP
Home Page: http://lastfm.felixbruns.de/php-last.fm-api/
License: MIT License
last.fm API bindings for PHP
Home Page: http://lastfm.felixbruns.de/php-last.fm-api/
License: MIT License
Any chance you could give a simple example of calling artist.getInfo? Having trouble how to make the call and what to include. Thanks.
It would be better if all classes in the library have prefix like lfCaller or like PEAR Services_LastFm_Caller.
In this way we'll avoid a lot of troubles with class names conflicts.
What do you think?
I´m trying to use the function but it is not working.
setApiKey(API_KEY); $tracks = Geo::getTopTracks($country); echo "Hello,
I know my request won't be an issue but.. Maybe it'll be cool to make an autoload for all classes because require_once 4-5 files isn't really good
Cheer
Hi,
Don't know if your still maintaining this but does this library work with safe mode turned off?
Thanks, Felix.
Example return from getRecentTracks (Works):
Track Object ( [artist:Track:private] => Foals [album:Track:private] => Antidotes: Tour Edition [duration:Track:private] => 0 [topTags:Track:private] => Array ( ) [id:Track:private] => 0 [location:Track:private] => [streamable:Track:private] => [fullTrack:Track:private] => [wiki:Track:private] => SimpleXMLElement Object ( ) [lastPlayed:Track:private] => 1362914640 [name:Media:private] => Hummer [mbid:Media:private] => 496bd5dd-6bab-44cf-9f45-14b064a0d749 [url:Media:private] => http://www.last.fm/music/Foals/_/Hummer [images:Media:private] => Array ( [0] => http://userserve-ak.last.fm/serve/34s/83845153.jpg [1] => http://userserve-ak.last.fm/serve/64s/83845153.jpg [2] => http://userserve-ak.last.fm/serve/126/83845153.jpg [4] => http://userserve-ak.last.fm/serve/300x300/83845153.jpg ) [listeners:Media:private] => 0 [playCount:Media:private] => 0 )
Return from getLovedTracks (Doesn't work):
Track Object ( [artist:Track:private] => Artist Object ( [streamable:Artist:private] => 0 [similar:Artist:private] => Array ( ) [tags:Artist:private] => Array ( ) [biography:Artist:private] => [match:Artist:private] => 0 [name:Media:private] => AC/DC [mbid:Media:private] => 66c662b6-6e2f-4930-8610-912e24c63ed1 [url:Media:private] => http://www.last.fm/music/AC%2FDC [images:Media:private] => Array ( ) [listeners:Media:private] => 0 [playCount:Media:private] => 0 ) [album:Track:private] => [duration:Track:private] => 0 [topTags:Track:private] => Array ( ) [id:Track:private] => 0 [location:Track:private] => [streamable:Track:private] => [fullTrack:Track:private] => [wiki:Track:private] => SimpleXMLElement Object ( ) [lastPlayed:Track:private] => 1362914760 [name:Media:private] => Back in Black [mbid:Media:private] => 0e2defc5-0731-4b0a-84b2-659e86f18716 [url:Media:private] => http://www.last.fm/music/AC%2FDC/_/Back+in+Black [images:Media:private] => Array ( [0] => http://userserve-ak.last.fm/serve/34s/81981459.jpg [1] => http://userserve-ak.last.fm/serve/64s/81981459.jpg [2] => http://userserve-ak.last.fm/serve/126/81981459.jpg [4] => http://userserve-ak.last.fm/serve/300x300/81981459.jpg ) [listeners:Media:private] => 0 [playCount:Media:private] => 0 )
Hi!
src/Shouts.php:
this class has the variable "private $auHTor"
but its getter method returns
"return $this->auTHor"
it is a little overprint i guess, which should be fixed:)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.