コード例 #1
0
        public static TwitterApiArgs NewArg(string parameter, string value)
        {
            TwitterApiArgs obj = new TwitterApiArgs();

            obj.parameter = parameter;
            obj.value     = value;
            return(obj);
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            List <TwitterApiArgs> args = new List <TwitterApiArgs>();

            args.Add(TwitterApiArgs.NewArg("screen_name", "krishhip"));
            //getFromTwitterApi(args);

            tokens.ConsumerKey       = "nUnNM0FxrpZ7cNtHIgOzjrJmB";                          //<-- replace with yours
            tokens.ConsumerSecret    = "0sIMR7SiysqR9uvPWgoRqyy5wSyz05oUQiokNPXHNfPu9duU3O"; //<-- replace with yours
            tokens.AccessToken       = "212250358-WFFsHAIIpxg2eX4IWLjehcSVO8bfIkmKeZMlM7fE"; //<-- replace with yours
            tokens.AccessTokenSecret = "HVNrsCITWyzf9rhQ0cwqS9Et9bqDJ9urPumZ58vvcbfgR";      //<-- replace with yours
        }