FlickrNet.Flickr.UrlsGetGroup C# (CSharp) Method

UrlsGetGroup() public method

Returns the url to a group's page.
public UrlsGetGroup ( string groupId ) : Uri
groupId string The NSID of the group to fetch the url for.
return Uri
        public Uri UrlsGetGroup(string groupId)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("method", "flickr.urls.getGroup");
            parameters.Add("api_key", _apiKey);
            parameters.Add("group_id", groupId);

            FlickrNet.Response response = GetResponseCache(parameters);

            if( response.Status == ResponseStatus.OK )
            {
                if( response.AllElements[0] != null && response.AllElements[0].Attributes["url"] != null )
                    return new Uri(response.AllElements[0].Attributes["url"].Value);
                else
                    return null;
            }
            else
            {
                throw new FlickrException(response.Error);
            }
        }
Flickr