su_client_api - var...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
var SU_ClientRequestKeychain=function(){this.tokens={stumble:"",request:""}; this.tokenExpiration=0; this.authString=""; this.OAuth={}; this.tokensExpired=function(){var a=Math.round(new Date().getTime()/1000); if(a>this.tokenExpiration){return true }return false }; this.setTokenExpiration=function(a){var b=Math.round(new Date().getTime()/1000); this.tokenExpiration=b+a } }; var SU_Client=function(){this.keychain=new SU_ClientRequestKeychain(); return true }; SU_Client.prototype={version:1,device:"",source:"",clientVersion:"",scriptVersion:" ",keychain:null,responseFilter:null,rate:function(c,a,d,b){if(!d){d=function(e){} }this.makeRequest({action:"simple-rate",pid:c,rating:a,noFacebookAutoshare:b},d) },subrate:function(b,a,c){if(!c){c=function(d){} }this.makeRequest({action:"simple-subrate",pid:b,subrating:a},c) },blocksite:function(c,a,b,d){if(!d){d=function(e){} }this.makeRequest({action:"blocksite",pid:c,url:a,blocksite:b},d) },askAutoShareFacebook:function(a){if(!a){return }this.makeRequest({action:"askAutoShareFacebook"},a) },autoShareFacebook:function(b,a,c){if(!c){c=function(d){}
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/21/2011 for the course COMM 101 taught by Professor Sterling during the Spring '11 term at San Jose State.

Page1 / 2

su_client_api - var...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online