You are here

public function Tags::tagsGetListUser in Flickr API Integration 8

Get the tag list for a given user.

Parameters

string $nsid: NSID of the user whose photoset tags will be returned.

bool $cacheable: Cacheable.

Return value

array Response from the flickr method flickr.tags.getListUser. (https://www.flickr.com/services/api/flickr.tags.getListUser.html)

File

src/Service/Tags.php, line 76

Class

Tags
Class Tags.

Namespace

Drupal\flickr_api\Service

Code

public function tagsGetListUser($nsid, $cacheable = TRUE) {
  $args = [
    'user_id' => $nsid,
  ];
  $response = $this->client
    ->request('flickr.tags.getListUser', $args, $cacheable);
  if ($response) {
    return $response['who']['tags']['tag'];
  }
  return FALSE;
}