Class: Evernote::EDAM::UserStore::UserStore::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/Evernote/EDAM/user_store.rb

Instance Method Summary collapse

Methods included from Thrift::Client

#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_authenticateObject



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_checkVersionObject



26
27
28
29
30
# File 'lib/Evernote/EDAM/user_store.rb', line 26

def recv_checkVersion()
  result = receive_message(CheckVersion_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'checkVersion failed: unknown result')
end

#recv_getBootstrapInfoObject



41
42
43
44
45
# File 'lib/Evernote/EDAM/user_store.rb', line 41

def recv_getBootstrapInfo()
  result = receive_message(GetBootstrapInfo_result)
  return result.success unless result.success.nil?
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getBootstrapInfo failed: unknown result')
end

#recv_getNoteStoreUrlObject



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_getPremiumInfoObject



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_getPublicUserInfoObject



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_getUserObject



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_refreshAuthenticationObject



73
74
75
76
77
78
79
# File 'lib/Evernote/EDAM/user_store.rb', line 73

def recv_refreshAuthentication()
  result = receive_message(RefreshAuthentication_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, 'refreshAuthentication failed: unknown result')
end

#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