Exemplo n.º 1
0
    //发一条微博帮忙推广
    static public bool PostAdvertisement(int UserCount, int StatusCount)
    {
        string strResult = GlobalPool.GetAPI(SysArgFor.USER_RELATION).API.Statuses_Update("(" + DateTime.Now.ToString() + ")I'm using an open source application Sinawler v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() +
                                                                                          ". There have been " + UserCount.ToString() + " users and " + StatusCount.ToString() + " statuses in queues!Project Homepage: http://code.google.com/p/sinawler/");

        if (strResult == null)
        {
            return(false);
        }
        else
        {
            return(true);
        }
    }