1
Vote

statuses/upload_url_text does not exist in this project.

description

As statuses/upload_url_text it's very powerful for uploading web images, it should be added to this project.
 
APIUri.cs (Status section):
public static readonly string UpdateStatusWithPic2 = string.Format("{0}statuses/upload_url_text.xml", WeiboUriPrefix);
 
AMicoblog.cs (Status section):
    public static StatusInfo PostStatusWithPic2(UpdateStatusWithPicInfo updateStatusWithPicInfo)
    {
        // Validates arguments
        ValidateArgument(updateStatusWithPicInfo, "updateStatusInfo");
        ValidateArgument(updateStatusWithPicInfo.Status, "updateStatusInfo.Status");
 
        Collection<ParamPair> customParams = new Collection<ParamPair>();
        customParams.Add(new ParamPair("status", RFC3986Encoder.UrlEncode(updateStatusWithPicInfo.Status)));
        customParams.Add(new ParamPair("url", updateStatusWithPicInfo.Pic));
 
        if (updateStatusWithPicInfo.Latitude.HasValue && updateStatusWithPicInfo.Longitude.HasValue)
        {
            customParams.Add(new ParamPair("lat", updateStatusWithPicInfo.Latitude.Value.ToString(InvariantCulture)));
            customParams.Add(new ParamPair("long", updateStatusWithPicInfo.Longitude.Value.ToString(InvariantCulture)));
        }
 
        // The status text must be url-encoded.
        var requester = new OAuthHttpPost(APIUri.UpdateStatusWithPic2, customParams);
 
        var response = requester.Request();
 
        var statusInfo = XmlSerializationHelper.XmlToObject<StatusInfo>(response);
 
        return statusInfo;
    }
 
statuses/upload_url_text works under 11034 V1.0

comments