Ignore:
Timestamp:
Sep 3, 2009, 6:25:28 PM (15 years ago)
Author:
bayral
Message:

pwg.tags.add support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/PiwigoLib/Proxy/PwgTagsProxy.cs

    r3818 r3819  
    4848        }
    4949
     50        static public PwgTagsProxyResponse pwg_tag_add(string tagName)
     51        {
     52            PwgTagsProxyResponse response = null;
     53            try
     54            {
     55                StringBuilder data = new StringBuilder();
     56                data.Append("method=pwg.tags.add");
     57                data.Append("&name=" + HttpUtility.UrlEncode(tagName));
     58
     59                response = PwgGenericProxy<PwgTagsProxyResponse>.Post(
     60                    PwgConfigProxy.PwgServeurUriBuilder.Uri,
     61                    data.ToString());
     62            }
     63            catch (Exception ex)
     64            {
     65                throw new PwgProxyException("pwg_tag_add", ex);
     66            }
     67
     68            return response;
     69        }
     70
    5071    }
    5172
Note: See TracChangeset for help on using the changeset viewer.