From 4ba57892c6d8b424c9b53700688e6fb1b66625d1 Mon Sep 17 00:00:00 2001 From: Matt Gifford Date: Tue, 28 Jan 2014 00:13:14 +0000 Subject: [PATCH] Additional methods (getRetweeterIDs, getRetweetsOfMe, getFriendsNoRetweetsIDs, getFriendsList, getFollowersList, getListOwnerships) --- .gitignore | 4 ++ Application.cfc | 2 +- com/coldfumonkeh/base.cfc | 14 ++++- com/coldfumonkeh/monkehTweet.cfc | 99 +++++++++++++++++++++++++++++--- 4 files changed, 109 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..74c87dd --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +test +.settings +settings.xml +.project diff --git a/Application.cfc b/Application.cfc index 66e8d81..7871840 100644 --- a/Application.cfc +++ b/Application.cfc @@ -36,7 +36,7 @@ All methods and parameters within the monkehTweet component are documented and h - this.Name = "monkehTweet_V1.3.1"; + this.Name = "monkehTweet_V1.4.4"; this.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 ); this.SessionManagement = true; this.SetClientCookies = true; diff --git a/com/coldfumonkeh/base.cfc b/com/coldfumonkeh/base.cfc index 84cd114..62733be 100644 --- a/com/coldfumonkeh/base.cfc +++ b/com/coldfumonkeh/base.cfc @@ -87,6 +87,10 @@ Revision history - revision of handleReturnFormat to return a string without messing around with serialization and back again. Thanks to Mark Hetherington for suggesting this on Github - fixing local variable error (for < CF9 ) on the entify method. + +27/01/2014 - Version 1.4.4 + + - added api endpoint value (without the version number) and additional getter to retrieve it within the main component using the no_version filter. ---> @@ -97,8 +101,9 @@ Revision history + variables.instance.apiEndpoint = 'https://api.twitter.com/'; variables.instance.baseURL = 'http://twitter.com/'; - variables.instance.apiURL = 'https://api.twitter.com/1.1/'; + variables.instance.apiURL = variables.instance.apiEndpoint & '1.1/'; variables.instance.searchURL = 'http://search.twitter.com/'; variables.instance.uploadURL = 'https://upload.twitter.com/1.1/'; variables.instance.parseResults = arguments.parseResults; @@ -106,7 +111,7 @@ Revision history // OAuth specific constuctors variables.instance.consumerKey = arguments.authDetails.getConsumerKey(); variables.instance.consumerSecret = arguments.authDetails.getConsumerSecret(); - + variables.instance.reqEndpoint = 'https://api.twitter.com/oauth/request_token'; variables.instance.authEndpoint = 'https://api.twitter.com/oauth/authorize'; variables.instance.accessEndpoint = 'http://api.twitter.com/oauth/access_token'; @@ -130,6 +135,10 @@ Revision history + + + + @@ -183,6 +192,7 @@ Revision history + diff --git a/com/coldfumonkeh/monkehTweet.cfc b/com/coldfumonkeh/monkehTweet.cfc index 4c73c72..861cff8 100644 --- a/com/coldfumonkeh/monkehTweet.cfc +++ b/com/coldfumonkeh/monkehTweet.cfc @@ -110,6 +110,18 @@ Revision history - ALL methods now return JSON format only (no more XML). Make sure to update your applications accordingly if you use XML. - DELETED a butt-load (official terminology) of methods that have been removed / deprecated in v1.1 API. +27/01/2014 - Version 1.4.4 + + - addition of the following methods: + - getRetweeterIDs + - getRetweetsOfMe + - getFriendsNoRetweetsIDs + - getFriendsList + - getFollowersList + - getListOwnerships + - fixed endpoint for reportSpam() method + + ---> @@ -178,7 +190,7 @@ Revision history - + @@ -228,6 +240,21 @@ Revision history + + + + + + + + + + + + + + + @@ -322,8 +349,19 @@ Revision history + + + + + + + + + + + @@ -407,12 +445,23 @@ Revision history + + + + + + + + + + + @@ -424,6 +473,7 @@ Revision history + @@ -497,6 +547,32 @@ Revision history + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -528,7 +604,6 @@ Revision history - @@ -562,10 +637,10 @@ Revision history - - + + @@ -981,6 +1056,17 @@ Revision history + + + + + + + + + + + @@ -1148,12 +1234,12 @@ Revision history - + - + @@ -1194,7 +1280,6 @@ Revision history -