forked from joelhill/cfScribe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsuccess.cfm
25 lines (23 loc) · 1016 Bytes
/
success.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
<cfif isDefined("session.user.accessToken") and
isDefined("session.user.verifier")>
success
<cfelse>
<cflocation url="index.cfm" addtoken="false">
</cfif>
<cfset session.cfTwitterAPI = createObject("component", "cfTwitterAPI").init(cfScribeObject=session.cfscribe)>
<!--- <cfset local.APIHit = session.cfTwitterAPI.getAccountSettings(accessToken=session.user.accessToken)> --->
<cfset local.APIHit = session.cfTwitterAPI.postStatusesDestroyID(accessToken=session.user.accessToken,
id="530230673957597185"
)>
<!---
<cfset local.APIHit = session.cfTwitterAPI.postUpdateProfileBackgroundImage(
accessToken=session.user.accessToken,
image='/home/jordan/Pictures/Guild-Wars-fantasy-art-artwork-Guild-Wars.jpg',
use=1
)>
--->
<!--- image='/home/jordan/Pictures/Guild-Wars-fantasy-art-artwork-Guild-Wars.jpg', --->
<cfdump var="#local.APIHit#">
<cfdump var="#DeserializeJSON(local.APIHit.getBody())#">
<cfabort>
<cfdump var="#session#">