Tag an artist with one or more user supplied tags.
static
void
addTags
(
string $artist,
$tags,
Session $session)
-
string
$artist: The artist name in question. (Required)
-
array
$tags: An array of user supplied tags to apply to this artist. Accepts a maximum of 10 tags. (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Create an Artist object from a SimpleXMLElement object.
static
Artist
fromSimpleXMLElement
(
$xml)
-
SimpleXMLElement
$xml: A SimpleXMLElement object.
Get a list of upcoming events for this artist. Easily integratable into calendars, using the ical standard (see feeds section below).
static
array
getEvents
(string $artist)
-
string
$artist: The artist name in question. (Required)
Get the metadata for an artist on last.fm. Includes biography.
static
Artist
getInfo
(
string $artist, [
string $mbid =
null], [
string $lang =
null])
-
string
$artist: The artist name in question. (Optional)
-
string
$mbid: The MusicBrainz ID for the artist. (Optional)
-
string
$lang: The language to return the biography in, expressed as an ISO 639 alpha-2 code. (Optional)
Get an artist playlist for streaming. INOFFICIAL.
static
Playlist
getPlaylist
(
string $artist)
-
string
$artist: Artist name.
Get shouts for this artist.
static
array
getShouts
(string $artist)
-
string
$artist: The artist name in question. (Required)
Get all the artists similar to this artist.
static
array
getSimilar
(string $artist, [string $limit = null])
-
string
$artist: The artist name in question. (Required)
-
string
$limit: Limit the number of similar artists returned. (Optional)
Get the tags applied by an individual user to an artist on last.fm.
static
array
getTags
(
string $artist,
Session $session)
-
string
$artist: The artist name in question. (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Get the top albums for an artist on last.fm, ordered by popularity.
static
array
getTopAlbums
(string $artist)
-
string
$artist: The artist name in question. (Required)
Get the top fans for an artist on last.fm, based on listening data.
static
array
getTopFans
(string $artist)
-
string
$artist: The artist name in question. (Required)
Get the top tags for an artist on last.fm, ordered by popularity.
static
array
getTopTags
(string $artist)
-
string
$artist: The artist name in question. (Required)
Get the top tracks by an artist on last.fm, ordered by popularity.
static
array
getTopTracks
(string $artist)
-
string
$artist: The artist name in question. (Required)
Remove a user's tag from an artist.
static
void
removeTag
(
string $artist,
string $tag,
Session $session)
-
string
$artist: The artist name in question. (Required)
-
string
$tag: A single user tag to remove from this artist. (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Search for an artist by name. Returns artist matches sorted by relevance.
static
PaginatedResult
search
(
string $artist, [
integer $limit =
null], [
integer $page =
null])
-
string
$artist: The artist name in question. (Required)
-
integer
$limit: Limit the number of artists returned at one time. Default (maximum) is 30. (Optional)
-
integer
$page: Scan into the results by specifying a page number. Defaults to first page. (Optional)
Share an artist with last.fm users or other friends.
static
void
share
(
string $artist,
$recipients, [
string $message =
null],
Session $session)
-
string
$artist: The artist to share. (Required)
-
array
$recipients: An array email addresses or last.fm usernames. Maximum is 10. (Required)
-
string
$message: An optional message to send with the recommendation. If not supplied a default message will be used. (Optional)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Create an Artist object.
Artist
__construct
(string $name, string $mbid, string $url, $images, boolean $streamable, integer $listeners, integer $playCount, $tags, $similar, string $biography, float $match)
-
string
$name: Name of this artist.
-
string
$mbid: MusicBrainz ID of this artist.
-
string
$url: Last.fm URL of this artist.
-
array
$images: An array of cover art images of different sizes.
-
boolean
$streamable: Is this artist streamable?
-
integer
$listeners: Number of listeners of this artist.
-
integer
$playCount: Play count of this artist.
-
array
$tags: An array of tags of this artist.
-
array
$similar: An array of similar artists.
-
string
$biography: Biography of this artist.
-
float
$match: Similarity value.
Redefinition of:
- Media::__construct()
- Create a media object.
Returns artist tags.
array
getArtistTags
()
Returns the artists biography.
string
getBiography
()
Returns similarity value.
float
getMatch
()
Returns similar artists.
array
getSimilarArtists
()
Returns if this artists is streamable.
boolean
isStreamable
()
Inherited Methods
Inherited From Media
Media::__construct()
Media::getImage()
Media::getListeners()
Media::getMbid()
Media::getName()
Media::getPlayCount()
Media::getUrl()