scrobble() public method

Scrobble the song using Last.fm service.
public scrobble ( string $timestamp ) : mixed
$timestamp string The UNIX timestamp in which the song started playing.
return mixed
Beispiel #1
0
 /**
  * Scrobble a song.
  *
  * @param Song   $song
  * @param string $timestamp The UNIX timestamp when the song started playing.
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function scrobble(Song $song, $timestamp)
 {
     return response()->json($song->scrobble($timestamp));
 }