TradeMe.Api.Client.PhotoMethods.AddPhotoToListing C# (CSharp) Method

AddPhotoToListing() public method

Performs the Photo Method: Adds a photo to an auction. The currently authenticated user must be the seller. POST

REQUIRES AUTHENTICATION.
public AddPhotoToListing ( string photoId, string listingId ) : System.Xml.Linq.XDocument
photoId string The id of the photo to add.
listingId string The ID of the listing to add the photo to.
return System.Xml.Linq.XDocument
        public XDocument AddPhotoToListing(string photoId, string listingId)
        {
            var query = String.Format(Constants.Culture, "{0}/{1}/Add/{2}{3}", Constants.PHOTOS, photoId, listingId, Constants.XML);
            return _connection.Post(null, query);
        }