src/lastfmapi/Api/ArtistApi.php
public function getShouts($methodVars)
    {
        if (!empty($methodVars['artist']) || !empty($methodVars['mbid'])) {
            $vars = array(
                'method' => 'artist.getshouts',
                'api_key' => $this->auth->apiKey
            );
            $vars = array_merge($vars, $methodVars);

            if ($call = $this->apiGetCall($vars)) {
                $shouts['artist'] = (string) $call->shouts['artist'];
                $shouts['total'] = (string) $call->shouts['total'];
                $i = 0;
                foreach ($call->shouts->shout as $shout) {
                    $shouts['shouts'][$i]['body'] = (string) $shout->body;
                    $shouts['shouts'][$i]['author'] = (string) $shout->author;
                    $shouts['shouts'][$i]['date'] = strtotime((string) $shout->date);
                    $i++;
                }

                return $shouts;
            } else {
                return false;
            }
        } else {
            throw new InvalidArgumentException('You must include artist variable in the call for this method');
        }
    }
public function getShouts($methodVars)
    {
        if (!empty($methodVars['artist']) || !empty($methodVars['mbid'])) {
            $vars = array(
                'method' => 'artist.getshouts',
                'api_key' => $this->auth->apiKey
            );
            $vars = array_merge($vars, $methodVars);

            if ($call = $this->apiGetCall($vars)) {
                $shouts['artist'] = (string) $call->shouts['artist'];
                $shouts['total'] = (string) $call->shouts['total'];
                $i = 0;
                foreach ($call->shouts->shout as $shout) {
                    $shouts['shouts'][$i]['body'] = (string) $shout->body;
                    $shouts['shouts'][$i]['author'] = (string) $shout->author;
                    $shouts['shouts'][$i]['date'] = strtotime((string) $shout->date);
                    $i++;
                }

                return $shouts;
            } else {
                return false;
            }
        } else {
            throw new InvalidArgumentException('You must include artist variable in the call for this method');
        }
    }
public function getShouts ( $ methodVars ) { if ( ! empty ( $ methodVars [ 'artist' ] ) || ! empty ( $ methodVars [ 'mbid' ] ) ) { $ vars = array ( 'method' => 'artist.getshouts' , 'api_key' => $ this -> auth -> apiKey ) ; $ vars = array_merge ( $ vars , $ methodVars ) ; if ( $ call = $ this -> apiGetCall ( $ vars ) ) { $ shouts [ 'artist' ] = ( string ) $ call -> shouts [ 'artist' ] ; $ shouts [ 'total' ] = ( string ) $ call -> shouts [ 'total' ] ; $ i = 0 ; foreach ( $ call -> shouts -> shout as $ shout ) { $ shouts [ 'shouts' ] [ $ i ] [ 'body' ] = ( string ) $ shout -> body ; $ shouts [ 'shouts' ] [ $ i ] [ 'author' ] = ( string ) $ shout -> author ; $ shouts [ 'shouts' ] [ $ i ] [ 'date' ] = strtotime ( ( string ) $ shout -> date ) ; $ i ++ ; } return $ shouts ; } else { return false ; } } else { throw new InvalidArgumentException ( 'You must include artist variable in the call for this method' ) ; } }
Get shouts for this artist.
@deprecated as of march 15 2016, 'artist.getshouts' service is not available
@param array $methodVars An array with the following required values: <i>artist</i>
@return array
Get shouts for this artist .