Class: Evernote::EDAM::UserStore::UserStore::Client
- Inherits:
-
Object
- Object
- Evernote::EDAM::UserStore::UserStore::Client
show all
- Includes:
- Thrift::Client
- Defined in:
- lib/Evernote/EDAM/user_store.rb
Instance Method Summary
collapse
-
#authenticate(username, password, consumerKey, consumerSecret) ⇒ Object
-
#checkVersion(clientName, edamVersionMajor, edamVersionMinor) ⇒ Object
-
#getBootstrapInfo(locale) ⇒ Object
-
#getNoteStoreUrl(authenticationToken) ⇒ Object
-
#getPremiumInfo(authenticationToken) ⇒ Object
-
#getPublicUserInfo(username) ⇒ Object
-
#getUser(authenticationToken) ⇒ Object
-
#recv_authenticate ⇒ Object
-
#recv_checkVersion ⇒ Object
-
#recv_getBootstrapInfo ⇒ Object
-
#recv_getNoteStoreUrl ⇒ Object
-
#recv_getPremiumInfo ⇒ Object
-
#recv_getPublicUserInfo ⇒ Object
-
#recv_getUser ⇒ Object
-
#recv_refreshAuthentication ⇒ Object
-
#refreshAuthentication(authenticationToken) ⇒ Object
-
#send_authenticate(username, password, consumerKey, consumerSecret) ⇒ Object
-
#send_checkVersion(clientName, edamVersionMajor, edamVersionMinor) ⇒ Object
-
#send_getBootstrapInfo(locale) ⇒ Object
-
#send_getNoteStoreUrl(authenticationToken) ⇒ Object
-
#send_getPremiumInfo(authenticationToken) ⇒ Object
-
#send_getPublicUserInfo(username) ⇒ Object
-
#send_getUser(authenticationToken) ⇒ Object
-
#send_refreshAuthentication(authenticationToken) ⇒ Object
#handle_exception, #initialize, #receive_message, #send_message
Instance Method Details
#authenticate(username, password, consumerKey, consumerSecret) ⇒ Object
47
48
49
50
|
# File 'lib/Evernote/EDAM/user_store.rb', line 47
def authenticate(username, password, consumerKey, consumerSecret)
send_authenticate(username, password, consumerKey, consumerSecret)
return recv_authenticate()
end
|
#checkVersion(clientName, edamVersionMajor, edamVersionMinor) ⇒ Object
17
18
19
20
|
# File 'lib/Evernote/EDAM/user_store.rb', line 17
def checkVersion(clientName, edamVersionMajor, edamVersionMinor)
send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
return recv_checkVersion()
end
|
#getBootstrapInfo(locale) ⇒ Object
32
33
34
35
|
# File 'lib/Evernote/EDAM/user_store.rb', line 32
def getBootstrapInfo(locale)
send_getBootstrapInfo(locale)
return recv_getBootstrapInfo()
end
|
#getNoteStoreUrl(authenticationToken) ⇒ Object
133
134
135
136
|
# File 'lib/Evernote/EDAM/user_store.rb', line 133
def getNoteStoreUrl(authenticationToken)
send_getNoteStoreUrl(authenticationToken)
return recv_getNoteStoreUrl()
end
|
#getPremiumInfo(authenticationToken) ⇒ Object
116
117
118
119
|
# File 'lib/Evernote/EDAM/user_store.rb', line 116
def getPremiumInfo(authenticationToken)
send_getPremiumInfo(authenticationToken)
return recv_getPremiumInfo()
end
|
#getPublicUserInfo(username) ⇒ Object
98
99
100
101
|
# File 'lib/Evernote/EDAM/user_store.rb', line 98
def getPublicUserInfo(username)
send_getPublicUserInfo(username)
return recv_getPublicUserInfo()
end
|
#getUser(authenticationToken) ⇒ Object
81
82
83
84
|
# File 'lib/Evernote/EDAM/user_store.rb', line 81
def getUser(authenticationToken)
send_getUser(authenticationToken)
return recv_getUser()
end
|
#recv_authenticate ⇒ Object
56
57
58
59
60
61
62
|
# File 'lib/Evernote/EDAM/user_store.rb', line 56
def recv_authenticate()
result = receive_message(Authenticate_result)
return result.success unless result.success.nil?
raise result.userException unless result.userException.nil?
raise result.systemException unless result.systemException.nil?
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'authenticate failed: unknown result')
end
|
#recv_checkVersion ⇒ Object
#recv_getBootstrapInfo ⇒ Object
#recv_getNoteStoreUrl ⇒ Object
142
143
144
145
146
147
148
|
# File 'lib/Evernote/EDAM/user_store.rb', line 142
def recv_getNoteStoreUrl()
result = receive_message(GetNoteStoreUrl_result)
return result.success unless result.success.nil?
raise result.userException unless result.userException.nil?
raise result.systemException unless result.systemException.nil?
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getNoteStoreUrl failed: unknown result')
end
|
#recv_getPremiumInfo ⇒ Object
125
126
127
128
129
130
131
|
# File 'lib/Evernote/EDAM/user_store.rb', line 125
def recv_getPremiumInfo()
result = receive_message(GetPremiumInfo_result)
return result.success unless result.success.nil?
raise result.userException unless result.userException.nil?
raise result.systemException unless result.systemException.nil?
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPremiumInfo failed: unknown result')
end
|
#recv_getPublicUserInfo ⇒ Object
107
108
109
110
111
112
113
114
|
# File 'lib/Evernote/EDAM/user_store.rb', line 107
def recv_getPublicUserInfo()
result = receive_message(GetPublicUserInfo_result)
return result.success unless result.success.nil?
raise result.notFoundException unless result.notFoundException.nil?
raise result.systemException unless result.systemException.nil?
raise result.userException unless result.userException.nil?
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getPublicUserInfo failed: unknown result')
end
|
#recv_getUser ⇒ Object
90
91
92
93
94
95
96
|
# File 'lib/Evernote/EDAM/user_store.rb', line 90
def recv_getUser()
result = receive_message(GetUser_result)
return result.success unless result.success.nil?
raise result.userException unless result.userException.nil?
raise result.systemException unless result.systemException.nil?
raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getUser failed: unknown result')
end
|
#recv_refreshAuthentication ⇒ Object
#refreshAuthentication(authenticationToken) ⇒ Object
64
65
66
67
|
# File 'lib/Evernote/EDAM/user_store.rb', line 64
def refreshAuthentication(authenticationToken)
send_refreshAuthentication(authenticationToken)
return recv_refreshAuthentication()
end
|
#send_authenticate(username, password, consumerKey, consumerSecret) ⇒ Object
52
53
54
|
# File 'lib/Evernote/EDAM/user_store.rb', line 52
def send_authenticate(username, password, consumerKey, consumerSecret)
send_message('authenticate', Authenticate_args, :username => username, :password => password, :consumerKey => consumerKey, :consumerSecret => consumerSecret)
end
|
#send_checkVersion(clientName, edamVersionMajor, edamVersionMinor) ⇒ Object
22
23
24
|
# File 'lib/Evernote/EDAM/user_store.rb', line 22
def send_checkVersion(clientName, edamVersionMajor, edamVersionMinor)
send_message('checkVersion', CheckVersion_args, :clientName => clientName, :edamVersionMajor => edamVersionMajor, :edamVersionMinor => edamVersionMinor)
end
|
#send_getBootstrapInfo(locale) ⇒ Object
37
38
39
|
# File 'lib/Evernote/EDAM/user_store.rb', line 37
def send_getBootstrapInfo(locale)
send_message('getBootstrapInfo', GetBootstrapInfo_args, :locale => locale)
end
|
#send_getNoteStoreUrl(authenticationToken) ⇒ Object
138
139
140
|
# File 'lib/Evernote/EDAM/user_store.rb', line 138
def send_getNoteStoreUrl(authenticationToken)
send_message('getNoteStoreUrl', GetNoteStoreUrl_args, :authenticationToken => authenticationToken)
end
|
#send_getPremiumInfo(authenticationToken) ⇒ Object
121
122
123
|
# File 'lib/Evernote/EDAM/user_store.rb', line 121
def send_getPremiumInfo(authenticationToken)
send_message('getPremiumInfo', GetPremiumInfo_args, :authenticationToken => authenticationToken)
end
|
#send_getPublicUserInfo(username) ⇒ Object
103
104
105
|
# File 'lib/Evernote/EDAM/user_store.rb', line 103
def send_getPublicUserInfo(username)
send_message('getPublicUserInfo', GetPublicUserInfo_args, :username => username)
end
|
#send_getUser(authenticationToken) ⇒ Object
86
87
88
|
# File 'lib/Evernote/EDAM/user_store.rb', line 86
def send_getUser(authenticationToken)
send_message('getUser', GetUser_args, :authenticationToken => authenticationToken)
end
|
#send_refreshAuthentication(authenticationToken) ⇒ Object
69
70
71
|
# File 'lib/Evernote/EDAM/user_store.rb', line 69
def send_refreshAuthentication(authenticationToken)
send_message('refreshAuthentication', RefreshAuthentication_args, :authenticationToken => authenticationToken)
end
|