class Evernote::EDAM::UserStore::PublicUserInfo
This structure is used to provide publicly-available user information about a particular account.
<dl>
<dt>userId:</dt> <dd> The unique numeric user identifier for the user account. </dd> <dt>shardId:</dt> <dd> DEPRECATED - Client applications should have no need to use this field. </dd> <dt>privilege:</dt> <dd> The privilege level of the account, to determine whether this is a Premium or Free account. </dd> <dt>noteStoreUrl:</dt> <dd> This field will contain the full URL that clients should use to make NoteStore requests to the server shard that contains that user's data. I.e. this is the URL that should be used to create the Thrift HTTP client transport to send messages to the NoteStore service for the account. </dd> <dt>webApiUrlPrefix:</dt> <dd> This field will contain the initial part of the URLs that should be used to make requests to Evernote's thin client "web API", which provide optimized operations for clients that aren't capable of manipulating the full contents of accounts via the full Thrift data model. Clients should concatenate the relative path for the various servlets onto the end of this string to construct the full URL, as documented on our developer web site. </dd> </dl>
Constants
- FIELDS
- NOTESTOREURL
- PRIVILEGE
- SHARDID
- USERID
- USERNAME
- WEBAPIURLPREFIX
Public Instance Methods
struct_fields()
click to toggle source
# File lib/Evernote/EDAM/user_store_types.rb, line 67 def struct_fields; FIELDS; end
validate()
click to toggle source
# File lib/Evernote/EDAM/user_store_types.rb, line 69 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field shardId is unset!') unless @shardId unless @privilege.nil? || ::Evernote::EDAM::Type::PrivilegeLevel::VALID_VALUES.include?(@privilege) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field privilege!') end end