/// <summary> /// Gets an RVT for sending a message to the supplied receiverID /// </summary> /// <param name="receiverId">ID of the receiver</param> /// <param name="cookies">Authentication cookie string</param> /// <returns>Functional RVT</returns> public String getRequestVerificationToken(int receiverID, String cookies) { String response = RobloxUtils.readPage("http://m.roblox.com/messages/sendmessage?Id=" + receiverID, cookies); return(RobloxUtils.parseToken(response)); }
/// <summary> /// Fetches 20 messages from the pageNumber specified, requires authentication /// </summary> /// <param name="pageNumber">Page number to get</param> /// <param name="cookies">Authentication cookie string</param> /// <returns>MessageCollection object containing all messages on the pageNumber</returns> public MessageCollection getNewMessages(String pageNumber, String cookies) { String page = RobloxUtils.readPage("http://www.roblox.com/messages/api/get-messages?messageTab=0&pageNumber=" + pageNumber + "&pageSize=20", cookies); return(JsonConvert.DeserializeObject <MessageCollection>(page)); }