Example #1
0
        public static void Message_GetLatests()
        {
            // Messages Received
            var latestMessagesReceived = Message.GetLatestMessagesReceived();
            var latestMessagesReceivedParameter = new MessagesReceivedParameters();
            latestMessagesReceivedParameter.SinceId = 10029230923;
            var latestMessagesReceivedFromParameter = Message.GetLatestMessagesReceived(latestMessagesReceivedParameter);

            // Messages Sent
            var latestMessagesSent = Message.GetLatestMessagesSent();
            var latestMessagesSentParameter = new MessagesSentParameters();
            latestMessagesSentParameter.PageNumber = 239823;
            var latestMessagesSentFromParameter = Message.GetLatestMessagesSent(latestMessagesSentParameter);
        }
Example #2
0
        public string GetLatestMessagesSent(int maximumMessages = TweetinviConsts.MESSAGE_GET_COUNT)
        {
            var parameter = new MessagesSentParameters()
            {
                MaximumNumberOfMessagesToRetrieve = maximumMessages
            };

            string query = _messageQueryGenerator.GetLatestMessagesSentQuery(parameter);
            return _twitterAccessor.ExecuteGETQueryReturningJson(query);
        }