Set a user's attendance status for an event.
static
void
attend
(
integer $event,
integer $status,
Session $session)
-
integer
$event: The numeric last.fm event ID. (Required)
-
integer
$status: The attendance status (ATTENDING, MAYBE_ATTENDING, NOT_ATTENDING). (Required)
-
Session
$session: A session obtained by getSession or getMobileSession. (Required)
Create a Event object from a SimpleXMLElement.
static
Event
fromSimpleXMLElement
(
$xml)
-
SimpleXMLElement
$xml: A SimpleXMLElement.
Get the metadata for an event on last.fm. Includes attendance and lineup information.
static
mixed
getInfo
(integer $event)
-
integer
$event: The numeric last.fm event ID. (Required)
Get an event playlist for streaming.. INOFFICIAL.
static
mixed
getPlaylist
(integer $event)
-
integer
$event: An event ID. (Required)
Get shouts for this event.
static
array
getShouts
(integer $event)
-
integer
$event: The numeric last.fm event id (Required)
Share an event with one or more last.fm users or other friends.
static
void
share
(
integer $event,
$recipients, [
string $message =
null],
Session $session)
-
integer
$event: An event ID. (Required)
-
array
$recipients: An array of 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 event object.
Event
__construct
(
integer $id,
string $title,
$artists,
Venue $venue,
integer $startDate,
string $description,
array $images,
string $url,
integer $attendance,
integer $reviews,
string $tag)
-
integer
$id: Event ID.
-
string
$title: Event title.
-
array
$artists: An array of Artist objects.
-
Venue
$venue: A Venue object.
-
integer
$startDate: A start date (unix timestamp).
-
string
$description: An event description.
-
array
$images: An array of cover art images of different sizes.
-
string
$url: A last.fm event URL.
-
integer
$attendance: The Number of users attending this event.
-
integer
$reviews: The Number of reviews of this event.
-
string
$tag: Tag of this event.
Returns the artists of this event.
array
getArtists
()
Returns number of users attending this event.
integer
getAttendance
()
Returns the description of this event.
string
getDescription
()
Returns the ID of this event.
integer
getId
()
Returns an image URL of the specified size.
string
getImage
(integer $size)
-
integer
$size: Image size constant.
Returns number of reviews of this event.
integer
getReviews
()
Returns the start date of this event.
integer
getStartDate
()
Returns the tag of this event.
Returns the title of this event.
string
getTitle
()
Returns the last.fm URL of this event.
string
getUrl
()
Returns the venue of this event.