-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathauthorize.cfm
42 lines (33 loc) · 1.6 KB
/
authorize.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!---
Name: authorize.cfm
Author: Matt Gifford AKA coldfumonkeh (http://www.mattgifford.co.uk)
Date: 10.09.2010
Copyright 2010 Matt Gifford AKA coldfumonkeh. All rights reserved.
Product and company names mentioned herein may be
trademarks or trade names of their respective owners.
Subject to the conditions below, you may, without charge:
Use, copy, modify and/or merge copies of this software and
associated documentation files (the 'Software')
Any person dealing with the Software shall not misrepresent the source of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--->
<cfscript>
returnData = application.objMonkehTweet.getAccessToken(
requestToken = session.oAuthToken,
requestSecret = session.oAuthTokenSecret,
verifier = url.oauth_verifier
);
if (returnData.success) {
//Save these off to your database against your User so you can access their account in the future
session['accessToken'] = returnData.token;
session['accessSecret'] = returnData.token_secret;
session['screen_name'] = returnData.screen_name;
session['user_id'] = returnData.user_id;
}
</cfscript>
<a href="post.cfm">Send a post using monkehTweets and see the CFC in action</a>