types

package
v0.0.0-...-0986bec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2018 License: MIT Imports: 4 Imported by: 10

Documentation

Index

Constants

View Source
const CLASSIFICATION_RECIPE_SERVICE_RECIPE = "002"
View Source
const CLASSIFICATION_RECIPE_USER_NON_RECIPE = "000"
View Source
const CLASSIFICATION_RECIPE_USER_RECIPE = "001"
View Source
const EDAM_NOTE_SOURCE_MAIL_CLIP = "mail.clip"
View Source
const EDAM_NOTE_SOURCE_MAIL_SMTP_GATEWAY = "mail.smtp"
View Source
const EDAM_NOTE_SOURCE_WEB_CLIP = "web.clip"

Variables

View Source
var Accounting_BusinessId_DEFAULT int32
View Source
var Accounting_BusinessName_DEFAULT string
View Source
var Accounting_Currency_DEFAULT string
View Source
var Accounting_LastFailedChargeReason_DEFAULT string
View Source
var Accounting_PremiumCommerceService_DEFAULT string
View Source
var Accounting_PremiumOrderNumber_DEFAULT string
View Source
var Accounting_PremiumServiceSKU_DEFAULT string
View Source
var Accounting_PremiumSubscriptionNumber_DEFAULT string
View Source
var Accounting_UnitDiscount_DEFAULT int32
View Source
var Accounting_UnitPrice_DEFAULT int32
View Source
var Accounting_UploadLimitNextMonth_DEFAULT int64
View Source
var Accounting_UploadLimit_DEFAULT int64
View Source
var BusinessNotebook_NotebookDescription_DEFAULT string
View Source
var BusinessNotebook_Recommended_DEFAULT bool
View Source
var BusinessUserInfo_BusinessId_DEFAULT int32
View Source
var BusinessUserInfo_BusinessName_DEFAULT string
View Source
var BusinessUserInfo_Email_DEFAULT string
View Source
var Data_BodyHash_DEFAULT []byte
View Source
var Data_Body_DEFAULT []byte
View Source
var Data_Size_DEFAULT int32
View Source
var GoUnusedProtection__ int
View Source
var LazyMap_FullMap_DEFAULT map[string]string
View Source
var LazyMap_KeysOnly_DEFAULT map[string]bool
View Source
var LinkedNotebook_BusinessId_DEFAULT int32
View Source
var LinkedNotebook_NoteStoreUrl_DEFAULT string
View Source
var LinkedNotebook_ShardId_DEFAULT string
View Source
var LinkedNotebook_ShareKey_DEFAULT string
View Source
var LinkedNotebook_ShareName_DEFAULT string
View Source
var LinkedNotebook_Stack_DEFAULT string
View Source
var LinkedNotebook_URI_DEFAULT string
View Source
var LinkedNotebook_UpdateSequenceNum_DEFAULT int32
View Source
var LinkedNotebook_Username_DEFAULT string
View Source
var LinkedNotebook_WebApiUrlPrefix_DEFAULT string
View Source
var NoteAttributes_Altitude_DEFAULT float64
View Source
var NoteAttributes_Author_DEFAULT string
View Source
var NoteAttributes_Classifications_DEFAULT map[string]string
View Source
var NoteAttributes_ContentClass_DEFAULT string
View Source
var NoteAttributes_LastEditedBy_DEFAULT string
View Source
var NoteAttributes_Latitude_DEFAULT float64
View Source
var NoteAttributes_Longitude_DEFAULT float64
View Source
var NoteAttributes_PlaceName_DEFAULT string
View Source
var NoteAttributes_ReminderOrder_DEFAULT int64
View Source
var NoteAttributes_SourceApplication_DEFAULT string
View Source
var NoteAttributes_SourceURL_DEFAULT string
View Source
var NoteAttributes_Source_DEFAULT string
View Source
var Note_Active_DEFAULT bool
View Source
var Note_ContentHash_DEFAULT []byte
View Source
var Note_ContentLength_DEFAULT int32
View Source
var Note_Content_DEFAULT string
View Source
var Note_NotebookGuid_DEFAULT string
View Source
var Note_Resources_DEFAULT []*Resource
View Source
var Note_TagGuids_DEFAULT []string
View Source
var Note_TagNames_DEFAULT []string
View Source
var Note_Title_DEFAULT string
View Source
var Note_UpdateSequenceNum_DEFAULT int32
View Source
var NotebookDescriptor_ContactName_DEFAULT string
View Source
var NotebookDescriptor_HasSharedNotebook_DEFAULT bool
View Source
var NotebookDescriptor_JoinedUserCount_DEFAULT int32
View Source
var NotebookDescriptor_NotebookDisplayName_DEFAULT string
View Source
var NotebookRestrictions_NoCreateNotes_DEFAULT bool
View Source
var NotebookRestrictions_NoCreateSharedNotebooks_DEFAULT bool
View Source
var NotebookRestrictions_NoCreateTags_DEFAULT bool
View Source
var NotebookRestrictions_NoEmailNotes_DEFAULT bool
View Source
var NotebookRestrictions_NoExpungeNotebook_DEFAULT bool
View Source
var NotebookRestrictions_NoExpungeNotes_DEFAULT bool
View Source
var NotebookRestrictions_NoExpungeTags_DEFAULT bool
View Source
var NotebookRestrictions_NoPublishToBusinessLibrary_DEFAULT bool
View Source
var NotebookRestrictions_NoPublishToPublic_DEFAULT bool
View Source
var NotebookRestrictions_NoReadNotes_DEFAULT bool
View Source
var NotebookRestrictions_NoSendMessageToRecipients_DEFAULT bool
View Source
var NotebookRestrictions_NoSetDefaultNotebook_DEFAULT bool
View Source
var NotebookRestrictions_NoSetNotebookStack_DEFAULT bool
View Source
var NotebookRestrictions_NoSetParentTag_DEFAULT bool
View Source
var NotebookRestrictions_NoShareNotes_DEFAULT bool
View Source
var NotebookRestrictions_NoUpdateNotebook_DEFAULT bool
View Source
var NotebookRestrictions_NoUpdateNotes_DEFAULT bool
View Source
var NotebookRestrictions_NoUpdateTags_DEFAULT bool
View Source
var Notebook_DefaultNotebook_DEFAULT bool
View Source
var Notebook_Name_DEFAULT string
View Source
var Notebook_Published_DEFAULT bool
View Source
var Notebook_SharedNotebookIds_DEFAULT []int64
View Source
var Notebook_SharedNotebooks_DEFAULT []*SharedNotebook
View Source
var Notebook_Stack_DEFAULT string
View Source
var Notebook_UpdateSequenceNum_DEFAULT int32
View Source
var PremiumInfo_PremiumUpgradable_DEFAULT bool
View Source
var PremiumInfo_SponsoredGroupName_DEFAULT string
View Source
var Publishing_Ascending_DEFAULT bool
View Source
var Publishing_PublicDescription_DEFAULT string
View Source
var Publishing_URI_DEFAULT string
View Source
var ResourceAttributes_Altitude_DEFAULT float64
View Source
var ResourceAttributes_Attachment_DEFAULT bool
View Source
var ResourceAttributes_CameraMake_DEFAULT string
View Source
var ResourceAttributes_CameraModel_DEFAULT string
View Source
var ResourceAttributes_ClientWillIndex_DEFAULT bool
View Source
var ResourceAttributes_FileName_DEFAULT string
View Source
var ResourceAttributes_Latitude_DEFAULT float64
View Source
var ResourceAttributes_Longitude_DEFAULT float64
View Source
var ResourceAttributes_RecoType_DEFAULT string
View Source
var ResourceAttributes_SourceURL_DEFAULT string
View Source
var Resource_Active_DEFAULT bool
View Source
var Resource_Duration_DEFAULT int16
View Source
var Resource_Height_DEFAULT int16
View Source
var Resource_Mime_DEFAULT string
View Source
var Resource_UpdateSequenceNum_DEFAULT int32
View Source
var Resource_Width_DEFAULT int16
View Source
var SavedSearchScope_IncludeAccount_DEFAULT bool
View Source
var SavedSearchScope_IncludeBusinessLinkedNotebooks_DEFAULT bool
View Source
var SavedSearchScope_IncludePersonalLinkedNotebooks_DEFAULT bool
View Source
var SavedSearch_Name_DEFAULT string
View Source
var SavedSearch_Query_DEFAULT string
View Source
var SavedSearch_UpdateSequenceNum_DEFAULT int32
View Source
var SharedNotebookRecipientSettings_ReminderNotifyEmail_DEFAULT bool
View Source
var SharedNotebookRecipientSettings_ReminderNotifyInApp_DEFAULT bool
View Source
var SharedNotebook_AllowPreview_DEFAULT bool
View Source
var SharedNotebook_Email_DEFAULT string
View Source
var SharedNotebook_ID_DEFAULT int64
View Source
var SharedNotebook_NotebookGuid_DEFAULT string
View Source
var SharedNotebook_NotebookModifiable_DEFAULT bool
View Source
var SharedNotebook_RequireLogin_DEFAULT bool
View Source
var SharedNotebook_ShareKey_DEFAULT string
View Source
var SharedNotebook_UserId_DEFAULT int32
View Source
var SharedNotebook_Username_DEFAULT string
View Source
var Tag_Name_DEFAULT string
View Source
var Tag_UpdateSequenceNum_DEFAULT int32
View Source
var UserAttributes_BusinessAddress_DEFAULT string
View Source
var UserAttributes_ClipFullPage_DEFAULT bool
View Source
var UserAttributes_Comments_DEFAULT string
View Source
var UserAttributes_DailyEmailLimit_DEFAULT int32
View Source
var UserAttributes_DefaultLatitude_DEFAULT float64
View Source
var UserAttributes_DefaultLocationName_DEFAULT string
View Source
var UserAttributes_DefaultLongitude_DEFAULT float64
View Source
var UserAttributes_EducationalDiscount_DEFAULT bool
View Source
var UserAttributes_GroupName_DEFAULT string
View Source
var UserAttributes_HideSponsorBilling_DEFAULT bool
View Source
var UserAttributes_IncomingEmailAddress_DEFAULT string
View Source
var UserAttributes_MaxReferrals_DEFAULT int32
View Source
var UserAttributes_Preactivation_DEFAULT bool
View Source
var UserAttributes_PreferredCountry_DEFAULT string
View Source
var UserAttributes_PreferredLanguage_DEFAULT string
View Source
var UserAttributes_RecentMailedAddresses_DEFAULT []string
View Source
var UserAttributes_RecognitionLanguage_DEFAULT string
View Source
var UserAttributes_RefererCode_DEFAULT string
View Source
var UserAttributes_ReferralCount_DEFAULT int32
View Source
var UserAttributes_ReferralProof_DEFAULT string
View Source
var UserAttributes_SentEmailCount_DEFAULT int32
View Source
var UserAttributes_TaxExempt_DEFAULT bool
View Source
var UserAttributes_TwitterId_DEFAULT string
View Source
var UserAttributes_TwitterUserName_DEFAULT string
View Source
var UserAttributes_UseEmailAutoFiling_DEFAULT bool
View Source
var UserAttributes_ViewedPromotions_DEFAULT []string
View Source
var User_Active_DEFAULT bool
View Source
var User_Email_DEFAULT string
View Source
var User_Name_DEFAULT string
View Source
var User_ShardId_DEFAULT string
View Source
var User_Timezone_DEFAULT string
View Source
var User_Username_DEFAULT string

Functions

This section is empty.

Types

type Accounting

type Accounting struct {
	UploadLimit            *int64              `thrift:"uploadLimit,1" json:"uploadLimit,omitempty"`
	UploadLimitEnd         *Timestamp          `thrift:"uploadLimitEnd,2" json:"uploadLimitEnd,omitempty"`
	UploadLimitNextMonth   *int64              `thrift:"uploadLimitNextMonth,3" json:"uploadLimitNextMonth,omitempty"`
	PremiumServiceStatus   *PremiumOrderStatus `thrift:"premiumServiceStatus,4" json:"premiumServiceStatus,omitempty"`
	PremiumOrderNumber     *string             `thrift:"premiumOrderNumber,5" json:"premiumOrderNumber,omitempty"`
	PremiumCommerceService *string             `thrift:"premiumCommerceService,6" json:"premiumCommerceService,omitempty"`
	PremiumServiceStart    *Timestamp          `thrift:"premiumServiceStart,7" json:"premiumServiceStart,omitempty"`
	PremiumServiceSKU      *string             `thrift:"premiumServiceSKU,8" json:"premiumServiceSKU,omitempty"`
	LastSuccessfulCharge   *Timestamp          `thrift:"lastSuccessfulCharge,9" json:"lastSuccessfulCharge,omitempty"`
	LastFailedCharge       *Timestamp          `thrift:"lastFailedCharge,10" json:"lastFailedCharge,omitempty"`
	LastFailedChargeReason *string             `thrift:"lastFailedChargeReason,11" json:"lastFailedChargeReason,omitempty"`
	NextPaymentDue         *Timestamp          `thrift:"nextPaymentDue,12" json:"nextPaymentDue,omitempty"`
	PremiumLockUntil       *Timestamp          `thrift:"premiumLockUntil,13" json:"premiumLockUntil,omitempty"`
	Updated                *Timestamp          `thrift:"updated,14" json:"updated,omitempty"`
	// unused field # 15
	PremiumSubscriptionNumber *string           `thrift:"premiumSubscriptionNumber,16" json:"premiumSubscriptionNumber,omitempty"`
	LastRequestedCharge       *Timestamp        `thrift:"lastRequestedCharge,17" json:"lastRequestedCharge,omitempty"`
	Currency                  *string           `thrift:"currency,18" json:"currency,omitempty"`
	UnitPrice                 *int32            `thrift:"unitPrice,19" json:"unitPrice,omitempty"`
	BusinessId                *int32            `thrift:"businessId,20" json:"businessId,omitempty"`
	BusinessName              *string           `thrift:"businessName,21" json:"businessName,omitempty"`
	BusinessRole              *BusinessUserRole `thrift:"businessRole,22" json:"businessRole,omitempty"`
	UnitDiscount              *int32            `thrift:"unitDiscount,23" json:"unitDiscount,omitempty"`
	NextChargeDate            *Timestamp        `thrift:"nextChargeDate,24" json:"nextChargeDate,omitempty"`
}
This represents the bookkeeping information for the user's subscription.

<dl>

<dt>uploadLimit</dt>
  <dd>The number of bytes that can be uploaded to the account
  in the current month.  For new notes that are created, this is the length
  of the note content (in Unicode characters) plus the size of each resource
  (in bytes).  For edited notes, this is the the difference between the old
  length and the new length (if this is greater than 0) plus the size of
  each new resource.
  </dd>
<dt>uploadLimitEnd</dt>
  <dd>The date and time when the current upload limit
  expires.  At this time, the monthly upload count reverts to 0 and a new
  limit is imposed.  This date and time is exclusive, so this is effectively
  the start of the new month.
  </dd>
<dt>uploadLimitNextMonth</dt>
  <dd> When uploadLimitEnd is reached, the service
  will change uploadLimit to uploadLimitNextMonth. If a premium account is
  canceled, this mechanism will reset the quota appropriately.
  </dd>
<dt>premiumServiceStatus</dt>
  <dd>Indicates the phases of a premium account
  during the billing process.
  </dd>
<dt>premiumOrderNumber</dt>
  <dd>The order number used by the commerce system to
  process recurring payments
  </dd>
<dt>premiumServiceStart</dt>
  <dd>The start date when this premium promotion
  began (this number will get overwritten if a premium service is canceled
  and then re-activated).
  </dd>
<dt>premiumCommerceService</dt>
  <dd>The commerce system used (paypal, Google
  checkout, etc)
  </dd>
<dt>premiumServiceSKU</dt>
  <dd>The code associated with the purchase eg. monthly
  or annual purchase. Clients should interpret this value and localize it.
  </dd>
<dt>lastSuccessfulCharge</dt>
  <dd>Date the last time the user was charged.
  Null if never charged.
  </dd>
<dt>lastFailedCharge</dt>
  <dd>Date the last time a charge was attempted and
  failed.
  </dd>
<dt>lastFailedChargeReason</dt>
  <dd>Reason provided for the charge failure
  </dd>
<dt>nextPaymentDue</dt>
  <dd>The end of the billing cycle. This could be in the
  past if there are failed charges.
  </dd>
<dt>premiumLockUntil</dt>
  <dd>An internal variable to manage locking operations
  on the commerce variables.
  </dd>
<dt>updated</dt>
  <dd>The date any modification where made to this record.
  </dd>
<dt>premiumSubscriptionNumber</dt>
  <dd>The number number identifying the
  recurring subscription used to make the recurring charges.
  </dd>
<dt>lastRequestedCharge</dt>
  <dd>Date charge last attempted</dd>
<dt>currency</dt>
  <dd>ISO 4217 currency code</dd>
<dt>unitPrice</dt>
  <dd>charge in the smallest unit of the currency (e.g. cents for USD)</dd>
<dt>businessId</dt>
  <dd><i>DEPRECATED:</i>See BusinessUserInfo.</dd>
<dt>businessName</dt>
  <dd><i>DEPRECATED:</i>See BusinessUserInfo.</dd>
<dt>businessRole</dt>
  <dd><i>DEPRECATED:</i>See BusinessUserInfo.</dd>
<dt>unitDiscount</dt>
  <dd>discount per seat in negative amount and smallest unit of the currency (e.g. cents for USD)</dd>
<dt>nextChargeDate</dt>
  <dd>The next time the user will be charged, may or may not be the same as nextPaymentDue</dd>
</dl>

Attributes:

  • UploadLimit
  • UploadLimitEnd
  • UploadLimitNextMonth
  • PremiumServiceStatus
  • PremiumOrderNumber
  • PremiumCommerceService
  • PremiumServiceStart
  • PremiumServiceSKU
  • LastSuccessfulCharge
  • LastFailedCharge
  • LastFailedChargeReason
  • NextPaymentDue
  • PremiumLockUntil
  • Updated
  • PremiumSubscriptionNumber
  • LastRequestedCharge
  • Currency
  • UnitPrice
  • BusinessId
  • BusinessName
  • BusinessRole
  • UnitDiscount
  • NextChargeDate
var User_Accounting_DEFAULT *Accounting

func NewAccounting

func NewAccounting() *Accounting

func (*Accounting) GetBusinessId

func (p *Accounting) GetBusinessId() int32

func (*Accounting) GetBusinessName

func (p *Accounting) GetBusinessName() string

func (*Accounting) GetBusinessRole

func (p *Accounting) GetBusinessRole() BusinessUserRole

func (*Accounting) GetCurrency

func (p *Accounting) GetCurrency() string

func (*Accounting) GetLastFailedCharge

func (p *Accounting) GetLastFailedCharge() Timestamp

func (*Accounting) GetLastFailedChargeReason

func (p *Accounting) GetLastFailedChargeReason() string

func (*Accounting) GetLastRequestedCharge

func (p *Accounting) GetLastRequestedCharge() Timestamp

func (*Accounting) GetLastSuccessfulCharge

func (p *Accounting) GetLastSuccessfulCharge() Timestamp

func (*Accounting) GetNextChargeDate

func (p *Accounting) GetNextChargeDate() Timestamp

func (*Accounting) GetNextPaymentDue

func (p *Accounting) GetNextPaymentDue() Timestamp

func (*Accounting) GetPremiumCommerceService

func (p *Accounting) GetPremiumCommerceService() string

func (*Accounting) GetPremiumLockUntil

func (p *Accounting) GetPremiumLockUntil() Timestamp

func (*Accounting) GetPremiumOrderNumber

func (p *Accounting) GetPremiumOrderNumber() string

func (*Accounting) GetPremiumServiceSKU

func (p *Accounting) GetPremiumServiceSKU() string

func (*Accounting) GetPremiumServiceStart

func (p *Accounting) GetPremiumServiceStart() Timestamp

func (*Accounting) GetPremiumServiceStatus

func (p *Accounting) GetPremiumServiceStatus() PremiumOrderStatus

func (*Accounting) GetPremiumSubscriptionNumber

func (p *Accounting) GetPremiumSubscriptionNumber() string

func (*Accounting) GetUnitDiscount

func (p *Accounting) GetUnitDiscount() int32

func (*Accounting) GetUnitPrice

func (p *Accounting) GetUnitPrice() int32

func (*Accounting) GetUpdated

func (p *Accounting) GetUpdated() Timestamp

func (*Accounting) GetUploadLimit

func (p *Accounting) GetUploadLimit() int64

func (*Accounting) GetUploadLimitEnd

func (p *Accounting) GetUploadLimitEnd() Timestamp

func (*Accounting) GetUploadLimitNextMonth

func (p *Accounting) GetUploadLimitNextMonth() int64

func (*Accounting) IsSetBusinessId

func (p *Accounting) IsSetBusinessId() bool

func (*Accounting) IsSetBusinessName

func (p *Accounting) IsSetBusinessName() bool

func (*Accounting) IsSetBusinessRole

func (p *Accounting) IsSetBusinessRole() bool

func (*Accounting) IsSetCurrency

func (p *Accounting) IsSetCurrency() bool

func (*Accounting) IsSetLastFailedCharge

func (p *Accounting) IsSetLastFailedCharge() bool

func (*Accounting) IsSetLastFailedChargeReason

func (p *Accounting) IsSetLastFailedChargeReason() bool

func (*Accounting) IsSetLastRequestedCharge

func (p *Accounting) IsSetLastRequestedCharge() bool

func (*Accounting) IsSetLastSuccessfulCharge

func (p *Accounting) IsSetLastSuccessfulCharge() bool

func (*Accounting) IsSetNextChargeDate

func (p *Accounting) IsSetNextChargeDate() bool

func (*Accounting) IsSetNextPaymentDue

func (p *Accounting) IsSetNextPaymentDue() bool

func (*Accounting) IsSetPremiumCommerceService

func (p *Accounting) IsSetPremiumCommerceService() bool

func (*Accounting) IsSetPremiumLockUntil

func (p *Accounting) IsSetPremiumLockUntil() bool

func (*Accounting) IsSetPremiumOrderNumber

func (p *Accounting) IsSetPremiumOrderNumber() bool

func (*Accounting) IsSetPremiumServiceSKU

func (p *Accounting) IsSetPremiumServiceSKU() bool

func (*Accounting) IsSetPremiumServiceStart

func (p *Accounting) IsSetPremiumServiceStart() bool

func (*Accounting) IsSetPremiumServiceStatus

func (p *Accounting) IsSetPremiumServiceStatus() bool

func (*Accounting) IsSetPremiumSubscriptionNumber

func (p *Accounting) IsSetPremiumSubscriptionNumber() bool

func (*Accounting) IsSetUnitDiscount

func (p *Accounting) IsSetUnitDiscount() bool

func (*Accounting) IsSetUnitPrice

func (p *Accounting) IsSetUnitPrice() bool

func (*Accounting) IsSetUpdated

func (p *Accounting) IsSetUpdated() bool

func (*Accounting) IsSetUploadLimit

func (p *Accounting) IsSetUploadLimit() bool

func (*Accounting) IsSetUploadLimitEnd

func (p *Accounting) IsSetUploadLimitEnd() bool

func (*Accounting) IsSetUploadLimitNextMonth

func (p *Accounting) IsSetUploadLimitNextMonth() bool

func (*Accounting) Read

func (p *Accounting) Read(iprot thrift.TProtocol) error

func (*Accounting) String

func (p *Accounting) String() string

func (*Accounting) Write

func (p *Accounting) Write(oprot thrift.TProtocol) error

type BusinessNotebook

type BusinessNotebook struct {
	NotebookDescription *string                       `thrift:"notebookDescription,1" json:"notebookDescription,omitempty"`
	Privilege           *SharedNotebookPrivilegeLevel `thrift:"privilege,2" json:"privilege,omitempty"`
	Recommended         *bool                         `thrift:"recommended,3" json:"recommended,omitempty"`
}

If a Notebook contained in an Evernote Business account has been published the to business library, the Notebook will have a reference to one of these structures, which specifies how the Notebook will be represented in the library.

<dl> <dt>notebookDescription</dt>

<dd>A short description of the notebook's content that will be displayed
    in the business library user interface. The description may not begin
    or end with whitespace.
<br/>
Length: EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MIN -
        EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_LEN_MAX
<br/>
Regex:  EDAM_BUSINESS_NOTEBOOK_DESCRIPTION_REGEX
</dd>

<dt>privilege</dt>

<dd>The privileges that will be granted to users who join the notebook through
    the business library.
</dd>

<dt>recommended</dt>

<dd>Whether the notebook should be "recommended" when displayed in the business
    library user interface.
</dd>

</dl>

Attributes:

  • NotebookDescription
  • Privilege
  • Recommended
var Notebook_BusinessNotebook_DEFAULT *BusinessNotebook

func NewBusinessNotebook

func NewBusinessNotebook() *BusinessNotebook

func (*BusinessNotebook) GetNotebookDescription

func (p *BusinessNotebook) GetNotebookDescription() string

func (*BusinessNotebook) GetPrivilege

func (*BusinessNotebook) GetRecommended

func (p *BusinessNotebook) GetRecommended() bool

func (*BusinessNotebook) IsSetNotebookDescription

func (p *BusinessNotebook) IsSetNotebookDescription() bool

func (*BusinessNotebook) IsSetPrivilege

func (p *BusinessNotebook) IsSetPrivilege() bool

func (*BusinessNotebook) IsSetRecommended

func (p *BusinessNotebook) IsSetRecommended() bool

func (*BusinessNotebook) Read

func (p *BusinessNotebook) Read(iprot thrift.TProtocol) error

func (*BusinessNotebook) String

func (p *BusinessNotebook) String() string

func (*BusinessNotebook) Write

func (p *BusinessNotebook) Write(oprot thrift.TProtocol) error

type BusinessUserInfo

type BusinessUserInfo struct {
	BusinessId   *int32            `thrift:"businessId,1" json:"businessId,omitempty"`
	BusinessName *string           `thrift:"businessName,2" json:"businessName,omitempty"`
	Role         *BusinessUserRole `thrift:"role,3" json:"role,omitempty"`
	Email        *string           `thrift:"email,4" json:"email,omitempty"`
}

This structure is used to provide information about an Evernote Business membership, for members who are part of a business.

<dl> <dt>businessId</dt>

<dd>The ID of the Evernote Business account that the user is a member of.

<dt>businessName</dt>

<dd>The human-readable name of the Evernote Business account that the user
    is a member of.</dd>

<dt>role</dt>

<dd>The role of the user within the Evernote Business account that
    they are a member of.</dd>

<dt>email</dt>

<dd>An e-mail address that will be used by the service in the context of your
    Evernote Business activities.  For example, this e-mail address will be used
    when you e-mail a business note, when you update notes in the account of
    your business, etc.  The business e-mail cannot be used for identification
    purposes such as for logging into the service.
</dd>

</dl>

Attributes:

  • BusinessId
  • BusinessName
  • Role
  • Email
var User_BusinessUserInfo_DEFAULT *BusinessUserInfo

func NewBusinessUserInfo

func NewBusinessUserInfo() *BusinessUserInfo

func (*BusinessUserInfo) GetBusinessId

func (p *BusinessUserInfo) GetBusinessId() int32

func (*BusinessUserInfo) GetBusinessName

func (p *BusinessUserInfo) GetBusinessName() string

func (*BusinessUserInfo) GetEmail

func (p *BusinessUserInfo) GetEmail() string

func (*BusinessUserInfo) GetRole

func (p *BusinessUserInfo) GetRole() BusinessUserRole

func (*BusinessUserInfo) IsSetBusinessId

func (p *BusinessUserInfo) IsSetBusinessId() bool

func (*BusinessUserInfo) IsSetBusinessName

func (p *BusinessUserInfo) IsSetBusinessName() bool

func (*BusinessUserInfo) IsSetEmail

func (p *BusinessUserInfo) IsSetEmail() bool

func (*BusinessUserInfo) IsSetRole

func (p *BusinessUserInfo) IsSetRole() bool

func (*BusinessUserInfo) Read

func (p *BusinessUserInfo) Read(iprot thrift.TProtocol) error

func (*BusinessUserInfo) String

func (p *BusinessUserInfo) String() string

func (*BusinessUserInfo) Write

func (p *BusinessUserInfo) Write(oprot thrift.TProtocol) error

type BusinessUserRole

type BusinessUserRole int64

Enumeration of the roles that a User can have within an Evernote Business account.

ADMIN: The user is an administrator of the Evernote Business account.

NORMAL: The user is a regular user within the Evernote Business account.

const (
	BusinessUserRole_ADMIN  BusinessUserRole = 1
	BusinessUserRole_NORMAL BusinessUserRole = 2
)
var Accounting_BusinessRole_DEFAULT BusinessUserRole
var BusinessUserInfo_Role_DEFAULT BusinessUserRole

func BusinessUserRoleFromString

func BusinessUserRoleFromString(s string) (BusinessUserRole, error)

func BusinessUserRolePtr

func BusinessUserRolePtr(v BusinessUserRole) *BusinessUserRole

func (BusinessUserRole) MarshalText

func (p BusinessUserRole) MarshalText() ([]byte, error)

func (BusinessUserRole) String

func (p BusinessUserRole) String() string

func (*BusinessUserRole) UnmarshalText

func (p *BusinessUserRole) UnmarshalText(text []byte) error

type Data

type Data struct {
	BodyHash []byte `thrift:"bodyHash,1" json:"bodyHash,omitempty"`
	Size     *int32 `thrift:"size,2" json:"size,omitempty"`
	Body     []byte `thrift:"body,3" json:"body,omitempty"`
}
In several places, EDAM exchanges blocks of bytes of data for a component
which may be relatively large.  For example:  the contents of a clipped
HTML note, the bytes of an embedded image, or the recognition XML for
a large image.  This structure is used in the protocol to represent
any of those large blocks of data when they are transmitted or when
they are only referenced their metadata.

<dl>

<dt>bodyHash</dt>
  <dd>This field carries a one-way hash of the contents of the
  data body, in binary form.  The hash function is MD5<br/>
  Length:  EDAM_HASH_LEN (exactly)
  </dd>

<dt>size</dt>
  <dd>The length, in bytes, of the data body.
  </dd>

<dt>body</dt>
  <dd>This field is set to contain the binary contents of the data
  whenever the resource is being transferred.  If only metadata is
  being exchanged, this field will be empty.  For example, a client could
  notify the service about the change to an attribute for a resource
  without transmitting the binary resource contents.
  </dd>
</dl>

Attributes:

  • BodyHash
  • Size
  • Body
var Resource_AlternateData_DEFAULT *Data
var Resource_Data_DEFAULT *Data
var Resource_Recognition_DEFAULT *Data

func NewData

func NewData() *Data

func (*Data) GetBody

func (p *Data) GetBody() []byte

func (*Data) GetBodyHash

func (p *Data) GetBodyHash() []byte

func (*Data) GetSize

func (p *Data) GetSize() int32

func (*Data) IsSetBody

func (p *Data) IsSetBody() bool

func (*Data) IsSetBodyHash

func (p *Data) IsSetBodyHash() bool

func (*Data) IsSetSize

func (p *Data) IsSetSize() bool

func (*Data) Read

func (p *Data) Read(iprot thrift.TProtocol) error

func (*Data) String

func (p *Data) String() string

func (*Data) Write

func (p *Data) Write(oprot thrift.TProtocol) error

type GUID

type GUID string

Most data elements within a user's account (e.g. notebooks, notes, tags, resources, etc.) are internally referred to using a globally unique identifier that is written in a standard string format. For example:

"8743428c-ef91-4d05-9e7c-4a2e856e813a"

The internal components of the GUID are not given any particular meaning: only the entire string is relevant as a unique identifier.

var LinkedNotebook_GUID_DEFAULT GUID
var Note_GUID_DEFAULT GUID
var NotebookDescriptor_GUID_DEFAULT GUID
var Notebook_GUID_DEFAULT GUID
var Resource_GUID_DEFAULT GUID
var Resource_NoteGuid_DEFAULT GUID
var SavedSearch_GUID_DEFAULT GUID
var Tag_GUID_DEFAULT GUID
var Tag_ParentGuid_DEFAULT GUID

func GUIDPtr

func GUIDPtr(v GUID) *GUID

type LazyMap

type LazyMap struct {
	KeysOnly map[string]bool   `thrift:"keysOnly,1" json:"keysOnly,omitempty"`
	FullMap  map[string]string `thrift:"fullMap,2" json:"fullMap,omitempty"`
}

A structure that wraps a map of name/value pairs whose values are not always present in the structure in order to reduce space when obtaining batches of entities that contain the map.

When the server provides the client with a LazyMap, it will fill in either the keysOnly field or the fullMap field, but never both, based on the API and parameters.

When a client provides a LazyMap to the server as part of an update to an object, the server will only update the LazyMap if the fullMap field is set. If the fullMap field is not set, the server will not make any changes to the map.

Check the API documentation of the individual calls involving the LazyMap for full details including the constraints of the names and values of the map.

<dl> <dt>keysOnly</dt>

<dd>The set of keys for the map.  This field is ignored by the
    server when set.
</dd>

<dt>fullMap</dt>

<dd>The complete map, including all keys and values.
</dd>

</dl>

Attributes:

  • KeysOnly
  • FullMap
var NoteAttributes_ApplicationData_DEFAULT *LazyMap
var ResourceAttributes_ApplicationData_DEFAULT *LazyMap

func NewLazyMap

func NewLazyMap() *LazyMap

func (*LazyMap) GetFullMap

func (p *LazyMap) GetFullMap() map[string]string

func (*LazyMap) GetKeysOnly

func (p *LazyMap) GetKeysOnly() map[string]bool

func (*LazyMap) IsSetFullMap

func (p *LazyMap) IsSetFullMap() bool

func (*LazyMap) IsSetKeysOnly

func (p *LazyMap) IsSetKeysOnly() bool

func (*LazyMap) Read

func (p *LazyMap) Read(iprot thrift.TProtocol) error

func (*LazyMap) String

func (p *LazyMap) String() string

func (*LazyMap) Write

func (p *LazyMap) Write(oprot thrift.TProtocol) error

type LinkedNotebook

type LinkedNotebook struct {
	// unused field # 1
	ShareName         *string `thrift:"shareName,2" json:"shareName,omitempty"`
	Username          *string `thrift:"username,3" json:"username,omitempty"`
	ShardId           *string `thrift:"shardId,4" json:"shardId,omitempty"`
	ShareKey          *string `thrift:"shareKey,5" json:"shareKey,omitempty"`
	URI               *string `thrift:"uri,6" json:"uri,omitempty"`
	GUID              *GUID   `thrift:"guid,7" json:"guid,omitempty"`
	UpdateSequenceNum *int32  `thrift:"updateSequenceNum,8" json:"updateSequenceNum,omitempty"`
	NoteStoreUrl      *string `thrift:"noteStoreUrl,9" json:"noteStoreUrl,omitempty"`
	WebApiUrlPrefix   *string `thrift:"webApiUrlPrefix,10" json:"webApiUrlPrefix,omitempty"`
	Stack             *string `thrift:"stack,11" json:"stack,omitempty"`
	BusinessId        *int32  `thrift:"businessId,12" json:"businessId,omitempty"`
}

A link in an users account that refers them to a public or individual share in another user's account.

<dl> <dt>shareName</dt> <dd>the display name of the shared notebook.

The link owner can change this.</dd>

<dt>username</dt> <dd>the username of the user who owns the shared or public notebook</dd>

<dt>shardId</dt> <dd>the shard ID of the notebook if the notebook is not public</dt>

<dt>shareKey</dt> <dd>the secret key that provides access to the shared notebook</dd>

<dt>uri</dt> <dd>the identifier of the public notebook</dd>

<dt>guid</dt>

<dd>The unique identifier of this linked notebook.  Will be set whenever
a linked notebook is retrieved from the service, but may be null when a client
is creating a linked notebook.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>updateSequenceNum</dt>

<dd>A number identifying the last transaction to
modify the state of this object.  The USN values are sequential within an
account, and can be used to compare the order of modifications within the
service.
</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 notebook'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>

<dt>stack</dt>

<dd>If this is set, then the notebook is visually contained within a stack
of notebooks with this name.  All notebooks in the same account with the
same 'stack' field are considered to be in the same stack.
Notebooks with no stack set are "top level" and not contained within a
stack.  The link owner can change this and this field is for the benefit
of the link owner.
</dd>

<dt>businessId</dt>

<dd>If set, this will be the unique identifier for the business that owns
the notebook to which the linked notebook refers.

</dl>

Attributes:

  • ShareName
  • Username
  • ShardId
  • ShareKey
  • URI
  • GUID
  • UpdateSequenceNum
  • NoteStoreUrl
  • WebApiUrlPrefix
  • Stack
  • BusinessId

func NewLinkedNotebook

func NewLinkedNotebook() *LinkedNotebook

func (*LinkedNotebook) GetBusinessId

func (p *LinkedNotebook) GetBusinessId() int32

func (*LinkedNotebook) GetGUID

func (p *LinkedNotebook) GetGUID() GUID

func (*LinkedNotebook) GetNoteStoreUrl

func (p *LinkedNotebook) GetNoteStoreUrl() string

func (*LinkedNotebook) GetShardId

func (p *LinkedNotebook) GetShardId() string

func (*LinkedNotebook) GetShareKey

func (p *LinkedNotebook) GetShareKey() string

func (*LinkedNotebook) GetShareName

func (p *LinkedNotebook) GetShareName() string

func (*LinkedNotebook) GetStack

func (p *LinkedNotebook) GetStack() string

func (*LinkedNotebook) GetURI

func (p *LinkedNotebook) GetURI() string

func (*LinkedNotebook) GetUpdateSequenceNum

func (p *LinkedNotebook) GetUpdateSequenceNum() int32

func (*LinkedNotebook) GetUsername

func (p *LinkedNotebook) GetUsername() string

func (*LinkedNotebook) GetWebApiUrlPrefix

func (p *LinkedNotebook) GetWebApiUrlPrefix() string

func (*LinkedNotebook) IsSetBusinessId

func (p *LinkedNotebook) IsSetBusinessId() bool

func (*LinkedNotebook) IsSetGUID

func (p *LinkedNotebook) IsSetGUID() bool

func (*LinkedNotebook) IsSetNoteStoreUrl

func (p *LinkedNotebook) IsSetNoteStoreUrl() bool

func (*LinkedNotebook) IsSetShardId

func (p *LinkedNotebook) IsSetShardId() bool

func (*LinkedNotebook) IsSetShareKey

func (p *LinkedNotebook) IsSetShareKey() bool

func (*LinkedNotebook) IsSetShareName

func (p *LinkedNotebook) IsSetShareName() bool

func (*LinkedNotebook) IsSetStack

func (p *LinkedNotebook) IsSetStack() bool

func (*LinkedNotebook) IsSetURI

func (p *LinkedNotebook) IsSetURI() bool

func (*LinkedNotebook) IsSetUpdateSequenceNum

func (p *LinkedNotebook) IsSetUpdateSequenceNum() bool

func (*LinkedNotebook) IsSetUsername

func (p *LinkedNotebook) IsSetUsername() bool

func (*LinkedNotebook) IsSetWebApiUrlPrefix

func (p *LinkedNotebook) IsSetWebApiUrlPrefix() bool

func (*LinkedNotebook) Read

func (p *LinkedNotebook) Read(iprot thrift.TProtocol) error

func (*LinkedNotebook) String

func (p *LinkedNotebook) String() string

func (*LinkedNotebook) Write

func (p *LinkedNotebook) Write(oprot thrift.TProtocol) error

type Note

type Note struct {
	GUID              *GUID           `thrift:"guid,1" json:"guid,omitempty"`
	Title             *string         `thrift:"title,2" json:"title,omitempty"`
	Content           *string         `thrift:"content,3" json:"content,omitempty"`
	ContentHash       []byte          `thrift:"contentHash,4" json:"contentHash,omitempty"`
	ContentLength     *int32          `thrift:"contentLength,5" json:"contentLength,omitempty"`
	Created           *Timestamp      `thrift:"created,6" json:"created,omitempty"`
	Updated           *Timestamp      `thrift:"updated,7" json:"updated,omitempty"`
	Deleted           *Timestamp      `thrift:"deleted,8" json:"deleted,omitempty"`
	Active            *bool           `thrift:"active,9" json:"active,omitempty"`
	UpdateSequenceNum *int32          `thrift:"updateSequenceNum,10" json:"updateSequenceNum,omitempty"`
	NotebookGuid      *string         `thrift:"notebookGuid,11" json:"notebookGuid,omitempty"`
	TagGuids          []string        `thrift:"tagGuids,12" json:"tagGuids,omitempty"`
	Resources         []*Resource     `thrift:"resources,13" json:"resources,omitempty"`
	Attributes        *NoteAttributes `thrift:"attributes,14" json:"attributes,omitempty"`
	TagNames          []string        `thrift:"tagNames,15" json:"tagNames,omitempty"`
}

Represents a single note in the user's account.

<dl> <dt>guid</dt>

<dd>The unique identifier of this note.  Will be set by the
server, but will be omitted by clients calling NoteStore.createNote()
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>title</dt>

<dd>The subject of the note.  Can't begin or end with a space.
<br/>
Length:  EDAM_NOTE_TITLE_LEN_MIN - EDAM_NOTE_TITLE_LEN_MAX
<br/>
Regex:  EDAM_NOTE_TITLE_REGEX
</dd>

<dt>content</dt>

<dd>The XHTML block that makes up the note.  This is
the canonical form of the note's contents, so will include abstract
Evernote tags for internal resource references.  A client may create
a separate transformed version of this content for internal presentation,
but the same canonical bytes should be used for transmission and
comparison unless the user chooses to modify their content.
<br/>
Length:  EDAM_NOTE_CONTENT_LEN_MIN - EDAM_NOTE_CONTENT_LEN_MAX
</dd>

<dt>contentHash</dt>

<dd>The binary MD5 checksum of the UTF-8 encoded content
body. This will always be set by the server, but clients may choose to omit
this when they submit a note with content.
<br/>
Length:  EDAM_HASH_LEN (exactly)
</dd>

<dt>contentLength</dt>

<dd>The number of Unicode characters in the content of
the note.  This will always be set by the service, but clients may choose
to omit this value when they submit a Note.
</dd>

<dt>created</dt>

<dd>The date and time when the note was created in one of the
clients.  In most cases, this will match the user's sense of when
the note was created, and ordering between notes will be based on
ordering of this field.  However, this is not a "reliable" timestamp
if a client has an incorrect clock, so it cannot provide a true absolute
ordering between notes.  Notes created directly through the service
(e.g. via the web GUI) will have an absolutely ordered "created" value.
</dd>

<dt>updated</dt>

<dd>The date and time when the note was last modified in one of
the clients.  In most cases, this will match the user's sense of when
the note was modified, but this field may not be absolutely reliable
due to the possibility of client clock errors.
</dd>

<dt>deleted</dt>

<dd>If present, the note is considered "deleted", and this
stores the date and time when the note was deleted by one of the clients.
In most cases, this will match the user's sense of when the note was
deleted, but this field may be unreliable due to the possibility of
client clock errors.
</dd>

<dt>active</dt>

<dd>If the note is available for normal actions and viewing,
this flag will be set to true.
</dd>

<dt>updateSequenceNum</dt>

<dd>A number identifying the last transaction to
modify the state of this note (including changes to the note's attributes
or resources).  The USN values are sequential within an account,
and can be used to compare the order of modifications within the service.
</dd>

<dt>notebookGuid</dt>

<dd>The unique identifier of the notebook that contains
this note.  If no notebookGuid is provided on a call to createNote(), the
default notebook will be used instead.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>tagGuids</dt>

<dd>A list of the GUID identifiers for tags that are applied to this note.
This may be provided in a call to createNote() to unambiguously declare
the tags that should be assigned to the new note.  Alternately, clients
may pass the names of desired tags via the 'tagNames' field during
note creation.
If the list of tags are omitted on a call to createNote(), then
the server will assume that no changes have been made to the resources.
Maximum:  EDAM_NOTE_TAGS_MAX tags per note
</dd>

<dt>resources</dt>

<dd>The list of resources that are embedded within this note.
If the list of resources are omitted on a call to updateNote(), then
the server will assume that no changes have been made to the resources.
The binary contents of the resources must be provided when the resource
is first sent to the service, but it will be omitted by the service when
the Note is returned in the future.
Maximum:  EDAM_NOTE_RESOURCES_MAX resources per note
</dd>

<dt>attributes</dt>

<dd>A list of the attributes for this note.
If the list of attributes are omitted on a call to updateNote(), then
the server will assume that no changes have been made to the resources.
</dd>

<dt>tagNames</dt>

<dd>May be provided by clients during calls to createNote() as an
alternative to providing the tagGuids of existing tags.  If any tagNames
are provided during createNote(), these will be found, or created if they
don't already exist.  Created tags will have no parent (they will be at
the top level of the tag panel).
</dd>

</dl>

Attributes:

  • GUID
  • Title
  • Content
  • ContentHash
  • ContentLength
  • Created
  • Updated
  • Deleted
  • Active
  • UpdateSequenceNum
  • NotebookGuid
  • TagGuids
  • Resources
  • Attributes
  • TagNames

func NewNote

func NewNote() *Note

func (*Note) GetActive

func (p *Note) GetActive() bool

func (*Note) GetAttributes

func (p *Note) GetAttributes() *NoteAttributes

func (*Note) GetContent

func (p *Note) GetContent() string

func (*Note) GetContentHash

func (p *Note) GetContentHash() []byte

func (*Note) GetContentLength

func (p *Note) GetContentLength() int32

func (*Note) GetCreated

func (p *Note) GetCreated() Timestamp

func (*Note) GetDeleted

func (p *Note) GetDeleted() Timestamp

func (*Note) GetGUID

func (p *Note) GetGUID() GUID

func (*Note) GetNotebookGuid

func (p *Note) GetNotebookGuid() string

func (*Note) GetResources

func (p *Note) GetResources() []*Resource

func (*Note) GetTagGuids

func (p *Note) GetTagGuids() []string

func (*Note) GetTagNames

func (p *Note) GetTagNames() []string

func (*Note) GetTitle

func (p *Note) GetTitle() string

func (*Note) GetUpdateSequenceNum

func (p *Note) GetUpdateSequenceNum() int32

func (*Note) GetUpdated

func (p *Note) GetUpdated() Timestamp

func (*Note) IsSetActive

func (p *Note) IsSetActive() bool

func (*Note) IsSetAttributes

func (p *Note) IsSetAttributes() bool

func (*Note) IsSetContent

func (p *Note) IsSetContent() bool

func (*Note) IsSetContentHash

func (p *Note) IsSetContentHash() bool

func (*Note) IsSetContentLength

func (p *Note) IsSetContentLength() bool

func (*Note) IsSetCreated

func (p *Note) IsSetCreated() bool

func (*Note) IsSetDeleted

func (p *Note) IsSetDeleted() bool

func (*Note) IsSetGUID

func (p *Note) IsSetGUID() bool

func (*Note) IsSetNotebookGuid

func (p *Note) IsSetNotebookGuid() bool

func (*Note) IsSetResources

func (p *Note) IsSetResources() bool

func (*Note) IsSetTagGuids

func (p *Note) IsSetTagGuids() bool

func (*Note) IsSetTagNames

func (p *Note) IsSetTagNames() bool

func (*Note) IsSetTitle

func (p *Note) IsSetTitle() bool

func (*Note) IsSetUpdateSequenceNum

func (p *Note) IsSetUpdateSequenceNum() bool

func (*Note) IsSetUpdated

func (p *Note) IsSetUpdated() bool

func (*Note) Read

func (p *Note) Read(iprot thrift.TProtocol) error

func (*Note) String

func (p *Note) String() string

func (*Note) Write

func (p *Note) Write(oprot thrift.TProtocol) error

type NoteAttributes

type NoteAttributes struct {
	SubjectDate *Timestamp `thrift:"subjectDate,1" json:"subjectDate,omitempty"`
	// unused fields # 2 to 9
	Latitude          *float64   `thrift:"latitude,10" json:"latitude,omitempty"`
	Longitude         *float64   `thrift:"longitude,11" json:"longitude,omitempty"`
	Altitude          *float64   `thrift:"altitude,12" json:"altitude,omitempty"`
	Author            *string    `thrift:"author,13" json:"author,omitempty"`
	Source            *string    `thrift:"source,14" json:"source,omitempty"`
	SourceURL         *string    `thrift:"sourceURL,15" json:"sourceURL,omitempty"`
	SourceApplication *string    `thrift:"sourceApplication,16" json:"sourceApplication,omitempty"`
	ShareDate         *Timestamp `thrift:"shareDate,17" json:"shareDate,omitempty"`
	ReminderOrder     *int64     `thrift:"reminderOrder,18" json:"reminderOrder,omitempty"`
	ReminderDoneTime  *Timestamp `thrift:"reminderDoneTime,19" json:"reminderDoneTime,omitempty"`
	ReminderTime      *Timestamp `thrift:"reminderTime,20" json:"reminderTime,omitempty"`
	PlaceName         *string    `thrift:"placeName,21" json:"placeName,omitempty"`
	ContentClass      *string    `thrift:"contentClass,22" json:"contentClass,omitempty"`
	ApplicationData   *LazyMap   `thrift:"applicationData,23" json:"applicationData,omitempty"`
	LastEditedBy      *string    `thrift:"lastEditedBy,24" json:"lastEditedBy,omitempty"`
	// unused field # 25
	Classifications map[string]string `thrift:"classifications,26" json:"classifications,omitempty"`
	CreatorId       *UserID           `thrift:"creatorId,27" json:"creatorId,omitempty"`
	LastEditorId    *UserID           `thrift:"lastEditorId,28" json:"lastEditorId,omitempty"`
}

The list of optional attributes that can be stored on a note. <dl> <dt>subjectDate</dt>

<dd>time that the note refers to
</dd>

<dt>latitude</dt>

<dd>the latitude where the note was taken
</dd>

<dt>longitude</dt>

<dd>the longitude where the note was taken
</dd>

<dt>altitude</dt>

<dd>the altitude where the note was taken
</dd>

<dt>author</dt>

<dd>the author of the content of the note
<br/>
Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>source</dt>

<dd>the method that the note was added to the account, if the
note wasn't directly authored in an Evernote desktop client.
<br/>
Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>sourceURL</dt>

<dd>the original location where the resource was hosted. For web clips,
this will be the URL of the page that was clipped.
<br/>
Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>sourceApplication</dt>

<dd>an identifying string for the application that
created this note.  This string does not have a guaranteed syntax or
structure -- it is intended for human inspection and tracking.
<br/>
Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>shareDate</dt>

<dd>The date and time when this note was directly shared via its own URL.
This is only set on notes that were individually shared - it is independent
of any notebook-level sharing of the containing notebook. This field
is treated as "read-only" for clients; the server will ignore changes
to this field from an external client.
</dd>

<dt>reminderOrder</dt> <dd>The set of notes with this parameter set are considered "reminders" and are to be treated specially by clients to give them higher UI prominence within a notebook. The value is used to sort the reminder notes within the notebook with higher values representing greater prominence. Outside of the context of a notebook, the value of this parameter is undefined. The value is not intended to be compared to the values of reminder notes in other notebooks. In order to allow clients to place a note at a higher precedence than other notes, you should never set a value greater than the current time (as defined for a Timetstamp). To place a note at higher precedence than existing notes, set the value to the current time as defined for a timestamp (milliseconds since the epoch). Synchronizing clients must remember the time when the update was performed, using the local clock on the client, and use that value when they later upload the note to the service. Clients must not set the reminderOrder to the reminderTime as the reminderTime could be in the future. Those two fields are never intended to be related. The correct value for reminderOrder field for new notes is the "current" time when the user indicated that the note is a reminder. Clients may implement a separate "sort by date" feature to show notes ordered by reminderTime. Whenever a reminderDoneTime or reminderTime is set but a reminderOrder is not set, the server will fill in the current server time for the reminderOrder field.</dd>

<dt>reminderDoneTime</dt> <dd>The date and time when a user dismissed/"marked done" the reminder on the note. Users typically do not manually set this value directly as it is set to the time when the user dismissed/"marked done" the reminder.</dd>

<dt>reminderTime</dt> <dd>The date and time a user has selected to be reminded of the note. A note with this value set is known as a "reminder" and the user can be reminded, via e-mail or client-specific notifications, of the note when the time is reached or about to be reached. When a user sets a reminder time on a note that has a reminder done time, and that reminder time is in the future, then the reminder done time should be cleared. This should happen regardless of any existing reminder time that may have previously existed on the note.</dd>

<dt>placeName</dt> <dd>Allows the user to assign a human-readable location name associated with a note. Users may assign values like 'Home' and 'Work'. Place names may also be populated with values from geonames database (e.g., a restaurant name). Applications are encouraged to normalize values so that grouping values by place name provides a useful result. Applications MUST NOT automatically add place name values based on geolocation without confirmation from the user; that is, the value in this field should be more useful than a simple automated lookup based on the note's latitude and longitude.</dd>

<dt>contentClass</dt> <dd>The class (or type) of note. This field is used to indicate to clients that special structured information is represented within the note such that special rules apply when making modifications. If contentClass is set and the client application does not specifically support the specified class, the client MUST treat the note as read-only. In this case, the client MAY modify the note's notebook and tags via the Note.notebookGuid and Note.tagGuids fields. The client MAY also modify the reminderOrder field as well as the reminderTime and reminderDoneTime fields. <p>Applications should set contentClass only when they are creating notes that contain structured information that needs to be maintained in order for the user to be able to use the note within that application. Setting contentClass makes a note read-only in other applications, so there is a trade-off when an application chooses to use contentClass. Applications that set contentClass when creating notes must use a contentClass string of the form <i>CompanyName.ApplicationName</i> to ensure uniqueness.</p> Length restrictions: EDAM_NOTE_CONTENT_CLASS_LEN_MIN, EDAM_NOTE_CONTENT_CLASS_LEN_MAX <br/> Regex: EDAM_NOTE_CONTENT_CLASS_REGEX </dd>

<dt>applicationData</dt> <dd>Provides a location for applications to store a relatively small (4kb) blob of data that is not meant to be visible to the user and that is opaque to the Evernote service. A single application may use at most one entry in this map, using its API consumer key as the map key. See the documentation for LazyMap for a description of when the actual map values are returned by the service. <p>To safely add or modify your application's entry in the map, use NoteStore.setNoteApplicationDataEntry. To safely remove your application's entry from the map, use NoteStore.unsetNoteApplicationDataEntry.</p> Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN <br/> Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX <br/> Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX </dd>

<dt>creatorId</dt> <dd>The numeric user ID of the user who originally created the note.</dd>

<dt>lastEditedBy</dt> <dd>An indication of who made the last change to the note. If you are accessing the note via a shared notebook to which you have modification rights, or if you are the owner of the notebook to which the note belongs, then you have access to the value. In this case, the value will be unset if the owner of the notebook containing the note was the last to make the modification, else it will be a string describing the guest who made the last edit. If you do not have access to this value, it will be left unset. This field is read-only by clients. The server will ignore all values set by clients into this field.</dd>

<dt>lastEditorId</dt> <dd>The numeric user ID of the user described in lastEditedBy.</dd>

<dt>classifications</dt> <dd>A map of classifications applied to the note by clients or by the Evernote service. The key is the string name of the classification type, and the value is a constant that begins with CLASSIFICATION_.</dd>

</dl>

Attributes:

  • SubjectDate
  • Latitude
  • Longitude
  • Altitude
  • Author
  • Source
  • SourceURL
  • SourceApplication
  • ShareDate
  • ReminderOrder
  • ReminderDoneTime
  • ReminderTime
  • PlaceName
  • ContentClass
  • ApplicationData
  • LastEditedBy
  • Classifications
  • CreatorId
  • LastEditorId
var Note_Attributes_DEFAULT *NoteAttributes

func NewNoteAttributes

func NewNoteAttributes() *NoteAttributes

func (*NoteAttributes) GetAltitude

func (p *NoteAttributes) GetAltitude() float64

func (*NoteAttributes) GetApplicationData

func (p *NoteAttributes) GetApplicationData() *LazyMap

func (*NoteAttributes) GetAuthor

func (p *NoteAttributes) GetAuthor() string

func (*NoteAttributes) GetClassifications

func (p *NoteAttributes) GetClassifications() map[string]string

func (*NoteAttributes) GetContentClass

func (p *NoteAttributes) GetContentClass() string

func (*NoteAttributes) GetCreatorId

func (p *NoteAttributes) GetCreatorId() UserID

func (*NoteAttributes) GetLastEditedBy

func (p *NoteAttributes) GetLastEditedBy() string

func (*NoteAttributes) GetLastEditorId

func (p *NoteAttributes) GetLastEditorId() UserID

func (*NoteAttributes) GetLatitude

func (p *NoteAttributes) GetLatitude() float64

func (*NoteAttributes) GetLongitude

func (p *NoteAttributes) GetLongitude() float64

func (*NoteAttributes) GetPlaceName

func (p *NoteAttributes) GetPlaceName() string

func (*NoteAttributes) GetReminderDoneTime

func (p *NoteAttributes) GetReminderDoneTime() Timestamp

func (*NoteAttributes) GetReminderOrder

func (p *NoteAttributes) GetReminderOrder() int64

func (*NoteAttributes) GetReminderTime

func (p *NoteAttributes) GetReminderTime() Timestamp

func (*NoteAttributes) GetShareDate

func (p *NoteAttributes) GetShareDate() Timestamp

func (*NoteAttributes) GetSource

func (p *NoteAttributes) GetSource() string

func (*NoteAttributes) GetSourceApplication

func (p *NoteAttributes) GetSourceApplication() string

func (*NoteAttributes) GetSourceURL

func (p *NoteAttributes) GetSourceURL() string

func (*NoteAttributes) GetSubjectDate

func (p *NoteAttributes) GetSubjectDate() Timestamp

func (*NoteAttributes) IsSetAltitude

func (p *NoteAttributes) IsSetAltitude() bool

func (*NoteAttributes) IsSetApplicationData

func (p *NoteAttributes) IsSetApplicationData() bool

func (*NoteAttributes) IsSetAuthor

func (p *NoteAttributes) IsSetAuthor() bool

func (*NoteAttributes) IsSetClassifications

func (p *NoteAttributes) IsSetClassifications() bool

func (*NoteAttributes) IsSetContentClass

func (p *NoteAttributes) IsSetContentClass() bool

func (*NoteAttributes) IsSetCreatorId

func (p *NoteAttributes) IsSetCreatorId() bool

func (*NoteAttributes) IsSetLastEditedBy

func (p *NoteAttributes) IsSetLastEditedBy() bool

func (*NoteAttributes) IsSetLastEditorId

func (p *NoteAttributes) IsSetLastEditorId() bool

func (*NoteAttributes) IsSetLatitude

func (p *NoteAttributes) IsSetLatitude() bool

func (*NoteAttributes) IsSetLongitude

func (p *NoteAttributes) IsSetLongitude() bool

func (*NoteAttributes) IsSetPlaceName

func (p *NoteAttributes) IsSetPlaceName() bool

func (*NoteAttributes) IsSetReminderDoneTime

func (p *NoteAttributes) IsSetReminderDoneTime() bool

func (*NoteAttributes) IsSetReminderOrder

func (p *NoteAttributes) IsSetReminderOrder() bool

func (*NoteAttributes) IsSetReminderTime

func (p *NoteAttributes) IsSetReminderTime() bool

func (*NoteAttributes) IsSetShareDate

func (p *NoteAttributes) IsSetShareDate() bool

func (*NoteAttributes) IsSetSource

func (p *NoteAttributes) IsSetSource() bool

func (*NoteAttributes) IsSetSourceApplication

func (p *NoteAttributes) IsSetSourceApplication() bool

func (*NoteAttributes) IsSetSourceURL

func (p *NoteAttributes) IsSetSourceURL() bool

func (*NoteAttributes) IsSetSubjectDate

func (p *NoteAttributes) IsSetSubjectDate() bool

func (*NoteAttributes) Read

func (p *NoteAttributes) Read(iprot thrift.TProtocol) error

func (*NoteAttributes) String

func (p *NoteAttributes) String() string

func (*NoteAttributes) Write

func (p *NoteAttributes) Write(oprot thrift.TProtocol) error

type NoteSortOrder

type NoteSortOrder int64

This enumeration defines the possible sort ordering for notes when they are returned from a search result.

const (
	NoteSortOrder_CREATED                NoteSortOrder = 1
	NoteSortOrder_UPDATED                NoteSortOrder = 2
	NoteSortOrder_RELEVANCE              NoteSortOrder = 3
	NoteSortOrder_UPDATE_SEQUENCE_NUMBER NoteSortOrder = 4
	NoteSortOrder_TITLE                  NoteSortOrder = 5
)
var Publishing_Order_DEFAULT NoteSortOrder

func NoteSortOrderFromString

func NoteSortOrderFromString(s string) (NoteSortOrder, error)

func NoteSortOrderPtr

func NoteSortOrderPtr(v NoteSortOrder) *NoteSortOrder

func (NoteSortOrder) MarshalText

func (p NoteSortOrder) MarshalText() ([]byte, error)

func (NoteSortOrder) String

func (p NoteSortOrder) String() string

func (*NoteSortOrder) UnmarshalText

func (p *NoteSortOrder) UnmarshalText(text []byte) error

type Notebook

type Notebook struct {
	GUID *GUID   `thrift:"guid,1" json:"guid,omitempty"`
	Name *string `thrift:"name,2" json:"name,omitempty"`
	// unused fields # 3 to 4
	UpdateSequenceNum *int32     `thrift:"updateSequenceNum,5" json:"updateSequenceNum,omitempty"`
	DefaultNotebook   *bool      `thrift:"defaultNotebook,6" json:"defaultNotebook,omitempty"`
	ServiceCreated    *Timestamp `thrift:"serviceCreated,7" json:"serviceCreated,omitempty"`
	ServiceUpdated    *Timestamp `thrift:"serviceUpdated,8" json:"serviceUpdated,omitempty"`
	// unused field # 9
	Publishing        *Publishing           `thrift:"publishing,10" json:"publishing,omitempty"`
	Published         *bool                 `thrift:"published,11" json:"published,omitempty"`
	Stack             *string               `thrift:"stack,12" json:"stack,omitempty"`
	SharedNotebookIds []int64               `thrift:"sharedNotebookIds,13" json:"sharedNotebookIds,omitempty"`
	SharedNotebooks   []*SharedNotebook     `thrift:"sharedNotebooks,14" json:"sharedNotebooks,omitempty"`
	BusinessNotebook  *BusinessNotebook     `thrift:"businessNotebook,15" json:"businessNotebook,omitempty"`
	Contact           *User                 `thrift:"contact,16" json:"contact,omitempty"`
	Restrictions      *NotebookRestrictions `thrift:"restrictions,17" json:"restrictions,omitempty"`
}

A unique container for a set of notes. <dl> <dt>guid</dt>

<dd>The unique identifier of this notebook.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>name</dt>

<dd>A sequence of characters representing the name of the
notebook.  May be changed by clients, but the account may not contain two
notebooks with names that are equal via a case-insensitive comparison.
Can't begin or end with a space.
<br/>
Length:  EDAM_NOTEBOOK_NAME_LEN_MIN - EDAM_NOTEBOOK_NAME_LEN_MAX
<br/>
Regex:  EDAM_NOTEBOOK_NAME_REGEX
</dd>

<dt>updateSequenceNum</dt>

<dd>A number identifying the last transaction to
modify the state of this object.  The USN values are sequential within an
account, and can be used to compare the order of modifications within the
service.
</dd>

<dt>defaultNotebook</dt>

<dd>If true, this notebook should be used for new notes
whenever the user has not (or cannot) specify a desired target notebook.
For example, if a note is submitted via SMTP email.
The service will maintain at most one defaultNotebook per account.
If a second notebook is created or updated with defaultNotebook set to
true, the service will automatically update the prior notebook's
defaultNotebook field to false.  If the default notebook is deleted
(i.e. "active" set to false), the "defaultNotebook" field will be
set to false by the service.  If the account has no default notebook
set, the service will use the most recent notebook as the default.
</dd>

<dt>serviceCreated</dt>

<dd>The time when this notebook was created on the
service. This will be set on the service during creation, and the service
will provide this value when it returns a Notebook to a client.
The service will ignore this value if it is sent by clients.
</dd>

<dt>serviceUpdated</dt>

<dd>The time when this notebook was last modified on the
service.  This will be set on the service during creation, and the service
will provide this value when it returns a Notebook to a client.
The service will ignore this value if it is sent by clients.
</dd>

<dt>publishing</dt>

<dd>If the Notebook has been opened for public access, or
business users shared with their business (i.e. if 'published' is
set to true), then this will point to the set of publishing
information for the Notebook (URI, description, etc.).  A
Notebook cannot be published without providing this information,
but it will persist for later use if publishing is ever disabled
on the Notebook.  Clients that do not wish to change the
publishing behavior of a Notebook should not set this value when
calling NoteStore.updateNotebook().
</dd>

<dt>published</dt>

<dd>If this is set to true, then the Notebook will be
accessible either to the public, or for business users to their business,
via the 'publishing' specification, which must also be set.  If this is set
to false, the Notebook will not be available to the public (or business).
Clients that do not wish to change the publishing behavior of a Notebook
should not set this value when calling NoteStore.updateNotebook().
</dd>

<dt>stack</dt>

<dd>If this is set, then the notebook is visually contained within a stack
of notebooks with this name.  All notebooks in the same account with the
same 'stack' field are considered to be in the same stack.
Notebooks with no stack set are "top level" and not contained within a
stack.
</dd>

<dt>sharedNotebookIds</dt>

<dd><i>DEPRECATED</i> - replaced by sharedNotebooks.</dd>

<dt>sharedNotebooks</dt>

<dd>The list of recipients to whom this notebook has been shared
(one SharedNotebook object per recipient email address). This field will
be unset if you do not have permission to access this data. If you are
accessing the notebook as the owner or via a shared notebook that is
modifiable, then you have access to this data and the value will be set.
This field is read-only. Clients may not make changes to shared notebooks
via this field.
</dd>

<dt>businessNotebook</dt>

<dd>If the notebook is part of a business account and has been published to the
business library, this will contain information for the library listing.
The presence or absence of this field is not a reliable test of whether a given
notebook is in fact a business notebook - the field is only used when a notebook is or
has been published to the business library.
</dd>

<dt>contact</dt>

<dd>Intended for use with Business accounts, this field identifies the user who
has been designated as the "contact".  For notebooks created in business
accounts, the server will automatically set this value to the user who created
the notebook unless Notebook.contact.username has been set, in which that value
will be used.  When updating a notebook, it is common to leave Notebook.contact
field unset, indicating that no change to the value is being requested and that
the existing value, if any, should be preserved.
</dd>

</dl>

Attributes:

  • GUID
  • Name
  • UpdateSequenceNum
  • DefaultNotebook
  • ServiceCreated
  • ServiceUpdated
  • Publishing
  • Published
  • Stack
  • SharedNotebookIds
  • SharedNotebooks
  • BusinessNotebook
  • Contact
  • Restrictions

func NewNotebook

func NewNotebook() *Notebook

func (*Notebook) GetBusinessNotebook

func (p *Notebook) GetBusinessNotebook() *BusinessNotebook

func (*Notebook) GetContact

func (p *Notebook) GetContact() *User

func (*Notebook) GetDefaultNotebook

func (p *Notebook) GetDefaultNotebook() bool

func (*Notebook) GetGUID

func (p *Notebook) GetGUID() GUID

func (*Notebook) GetName

func (p *Notebook) GetName() string

func (*Notebook) GetPublished

func (p *Notebook) GetPublished() bool

func (*Notebook) GetPublishing

func (p *Notebook) GetPublishing() *Publishing

func (*Notebook) GetRestrictions

func (p *Notebook) GetRestrictions() *NotebookRestrictions

func (*Notebook) GetServiceCreated

func (p *Notebook) GetServiceCreated() Timestamp

func (*Notebook) GetServiceUpdated

func (p *Notebook) GetServiceUpdated() Timestamp

func (*Notebook) GetSharedNotebookIds

func (p *Notebook) GetSharedNotebookIds() []int64

func (*Notebook) GetSharedNotebooks

func (p *Notebook) GetSharedNotebooks() []*SharedNotebook

func (*Notebook) GetStack

func (p *Notebook) GetStack() string

func (*Notebook) GetUpdateSequenceNum

func (p *Notebook) GetUpdateSequenceNum() int32

func (*Notebook) IsSetBusinessNotebook

func (p *Notebook) IsSetBusinessNotebook() bool

func (*Notebook) IsSetContact

func (p *Notebook) IsSetContact() bool

func (*Notebook) IsSetDefaultNotebook

func (p *Notebook) IsSetDefaultNotebook() bool

func (*Notebook) IsSetGUID

func (p *Notebook) IsSetGUID() bool

func (*Notebook) IsSetName

func (p *Notebook) IsSetName() bool

func (*Notebook) IsSetPublished

func (p *Notebook) IsSetPublished() bool

func (*Notebook) IsSetPublishing

func (p *Notebook) IsSetPublishing() bool

func (*Notebook) IsSetRestrictions

func (p *Notebook) IsSetRestrictions() bool

func (*Notebook) IsSetServiceCreated

func (p *Notebook) IsSetServiceCreated() bool

func (*Notebook) IsSetServiceUpdated

func (p *Notebook) IsSetServiceUpdated() bool

func (*Notebook) IsSetSharedNotebookIds

func (p *Notebook) IsSetSharedNotebookIds() bool

func (*Notebook) IsSetSharedNotebooks

func (p *Notebook) IsSetSharedNotebooks() bool

func (*Notebook) IsSetStack

func (p *Notebook) IsSetStack() bool

func (*Notebook) IsSetUpdateSequenceNum

func (p *Notebook) IsSetUpdateSequenceNum() bool

func (*Notebook) Read

func (p *Notebook) Read(iprot thrift.TProtocol) error

func (*Notebook) String

func (p *Notebook) String() string

func (*Notebook) Write

func (p *Notebook) Write(oprot thrift.TProtocol) error

type NotebookDescriptor

type NotebookDescriptor struct {
	GUID                *GUID   `thrift:"guid,1" json:"guid,omitempty"`
	NotebookDisplayName *string `thrift:"notebookDisplayName,2" json:"notebookDisplayName,omitempty"`
	ContactName         *string `thrift:"contactName,3" json:"contactName,omitempty"`
	HasSharedNotebook   *bool   `thrift:"hasSharedNotebook,4" json:"hasSharedNotebook,omitempty"`
	JoinedUserCount     *int32  `thrift:"joinedUserCount,5" json:"joinedUserCount,omitempty"`
}

A structure that describes a notebook or a user's relationship with a notebook. NotebookDescriptor is expected to remain a lighter-weight structure when compared to Notebook. <dl> <dt>guid</dt>

<dd>The unique identifier of the notebook.
</dd>

<dt>notebookDisplayName</dt>

<dd>A sequence of characters representing the name of the
notebook.
</dd>

<dt>contactName</dt>

<dd>The User.name value of the notebook's "contact".
</dd>

<dt>hasSharedNotebook</dt>

<dd>Whether a SharedNotebook record exists between the calling user and this
notebook.
</dd>

<dt>joinedUserCount</dt>

<dd>The number of users who have joined this notebook.
</dd>

</dl>

Attributes:

  • GUID
  • NotebookDisplayName
  • ContactName
  • HasSharedNotebook
  • JoinedUserCount

func NewNotebookDescriptor

func NewNotebookDescriptor() *NotebookDescriptor

func (*NotebookDescriptor) GetContactName

func (p *NotebookDescriptor) GetContactName() string

func (*NotebookDescriptor) GetGUID

func (p *NotebookDescriptor) GetGUID() GUID

func (*NotebookDescriptor) GetHasSharedNotebook

func (p *NotebookDescriptor) GetHasSharedNotebook() bool

func (*NotebookDescriptor) GetJoinedUserCount

func (p *NotebookDescriptor) GetJoinedUserCount() int32

func (*NotebookDescriptor) GetNotebookDisplayName

func (p *NotebookDescriptor) GetNotebookDisplayName() string

func (*NotebookDescriptor) IsSetContactName

func (p *NotebookDescriptor) IsSetContactName() bool

func (*NotebookDescriptor) IsSetGUID

func (p *NotebookDescriptor) IsSetGUID() bool

func (*NotebookDescriptor) IsSetHasSharedNotebook

func (p *NotebookDescriptor) IsSetHasSharedNotebook() bool

func (*NotebookDescriptor) IsSetJoinedUserCount

func (p *NotebookDescriptor) IsSetJoinedUserCount() bool

func (*NotebookDescriptor) IsSetNotebookDisplayName

func (p *NotebookDescriptor) IsSetNotebookDisplayName() bool

func (*NotebookDescriptor) Read

func (p *NotebookDescriptor) Read(iprot thrift.TProtocol) error

func (*NotebookDescriptor) String

func (p *NotebookDescriptor) String() string

func (*NotebookDescriptor) Write

func (p *NotebookDescriptor) Write(oprot thrift.TProtocol) error

type NotebookRestrictions

type NotebookRestrictions struct {
	NoReadNotes                            *bool                               `thrift:"noReadNotes,1" json:"noReadNotes,omitempty"`
	NoCreateNotes                          *bool                               `thrift:"noCreateNotes,2" json:"noCreateNotes,omitempty"`
	NoUpdateNotes                          *bool                               `thrift:"noUpdateNotes,3" json:"noUpdateNotes,omitempty"`
	NoExpungeNotes                         *bool                               `thrift:"noExpungeNotes,4" json:"noExpungeNotes,omitempty"`
	NoShareNotes                           *bool                               `thrift:"noShareNotes,5" json:"noShareNotes,omitempty"`
	NoEmailNotes                           *bool                               `thrift:"noEmailNotes,6" json:"noEmailNotes,omitempty"`
	NoSendMessageToRecipients              *bool                               `thrift:"noSendMessageToRecipients,7" json:"noSendMessageToRecipients,omitempty"`
	NoUpdateNotebook                       *bool                               `thrift:"noUpdateNotebook,8" json:"noUpdateNotebook,omitempty"`
	NoExpungeNotebook                      *bool                               `thrift:"noExpungeNotebook,9" json:"noExpungeNotebook,omitempty"`
	NoSetDefaultNotebook                   *bool                               `thrift:"noSetDefaultNotebook,10" json:"noSetDefaultNotebook,omitempty"`
	NoSetNotebookStack                     *bool                               `thrift:"noSetNotebookStack,11" json:"noSetNotebookStack,omitempty"`
	NoPublishToPublic                      *bool                               `thrift:"noPublishToPublic,12" json:"noPublishToPublic,omitempty"`
	NoPublishToBusinessLibrary             *bool                               `thrift:"noPublishToBusinessLibrary,13" json:"noPublishToBusinessLibrary,omitempty"`
	NoCreateTags                           *bool                               `thrift:"noCreateTags,14" json:"noCreateTags,omitempty"`
	NoUpdateTags                           *bool                               `thrift:"noUpdateTags,15" json:"noUpdateTags,omitempty"`
	NoExpungeTags                          *bool                               `thrift:"noExpungeTags,16" json:"noExpungeTags,omitempty"`
	NoSetParentTag                         *bool                               `thrift:"noSetParentTag,17" json:"noSetParentTag,omitempty"`
	NoCreateSharedNotebooks                *bool                               `thrift:"noCreateSharedNotebooks,18" json:"noCreateSharedNotebooks,omitempty"`
	UpdateWhichSharedNotebookRestrictions  *SharedNotebookInstanceRestrictions `thrift:"updateWhichSharedNotebookRestrictions,19" json:"updateWhichSharedNotebookRestrictions,omitempty"`
	ExpungeWhichSharedNotebookRestrictions *SharedNotebookInstanceRestrictions `thrift:"expungeWhichSharedNotebookRestrictions,20" json:"expungeWhichSharedNotebookRestrictions,omitempty"`
}

This structure captures information about the types of operations that cannot be performed on a given notebook with a type of authenticated access and credentials. The values filled into this structure are based on then-current values in the server database for shared notebooks and notebook publishing records, as well as information related to the authentication token. Information from the authentication token includes the application that is accessing the server, as defined by the permissions granted by consumer (api) key, and the method used to obtain the token, for example via authenticateToSharedNotebook, authenticateToBusiness, etc. Note that changes to values in this structure that are the result of shared notebook or publishing record changes are communicated to the client via a change in the notebook USN during sync. It is important to use the same access method, parameters, and consumer key in order obtain correct results from the sync engine.

The server has the final say on what is allowed as values may change between calls to obtain NotebookRestrictions instances and to operate on data on the service.

If the following are set and true, then the given restriction is in effect, as accessed by the same authentication token from which the values were obtained.

<dt>noReadNotes</dt>

<dd>The client is not able to read notes from the service and
the notebook is write-only.
</dd>

<dt>noCreateNotes</dt>

<dd>The client may not create new notes in the notebook.
</dd>

<dt>noUpdateNotes</dt>

<dd>The client may not update notes currently in the notebook.
</dd>

<dt>noExpungeNotes</dt>

<dd>The client may not expunge notes currently in the notebook.
</dd>

<dt>noShareNotes</dt>

<dd>The client may not share notes in the notebook via the
shareNote method.
</dd>

<dt>noEmailNotes</dt>

<dd>The client may not e-mail notes via the Evernote service by
using the emailNote method.
</dd>

<dt>noSendMessageToRecipients</dt>

<dd>The client may not send messages to the share recipients of
the notebook.
</dd>

<dt>noUpdateNotebook</dt>

<dd>The client may not update the Notebook object itself, for
example, via the updateNotebook method.
</dd>

<dt>noExpungeNotebook</dt>

<dd>The client may not expunge the Notebook object itself, for
example, via the expungeNotebook method.
</dd>

<dt>noSetDefaultNotebook</dt>

<dd>The client may not set this notebook to be the default notebook.
The caller should leave Notebook.defaultNotebook unset.
</dd>

<dt>noSetNotebookStack</dt>

<dd>If the client is able to update the Notebook, the Notebook.stack
value may not be set.
</dd>

<dt>noPublishToPublic</dt>

<dd>The client may not change the publish the notebook to the public.
For example, business notebooks may not be shared publicly.
</dd>

<dt>noPublishToBusinessLibrary</dt>

<dd>The client may not publish the notebook to the business library.
</dd>

<dt>noCreateTags</dt>

<dd>The client may not complete an operation that results in a new tag
being created in the owner's account.
</dd>

<dt>noUpdateTags</dt>

<dd>The client may not update tags in the owner's account.
</dd>

<dt>noExpungeTags</dt>

<dd>The client may not expunge tags in the owner's account.
</dd>

<dt>noSetParentTag</dt>

<dd>If the client is able to create or update tags in the owner's account,
then they will not be able to set the parent tag.  Leave the value unset.
</dd>

<dt>noCreateSharedNotebooks</dt>

<dd>The client is unable to create shared notebooks for the notebook.
</dd>

<dt>updateWhichSharedNotebookRestrictions</dt>

<dd>Restrictions on which shared notebook instances can be updated.  If the
value is not set or null, then the client can update any of the shared notebooks
associated with the notebook on which the NotebookRestrictions are defined.
See the enumeration for further details.
</dd>

<dt>expungeWhichSharedNotebookRestrictions</dt>

<dd>Restrictions on which shared notebook instances can be expunged.  If the
value is not set or null, then the client can expunge any of the shared notebooks
associated with the notebook on which the NotebookRestrictions are defined.
See the enumeration for further details.
</dd>

Attributes:

  • NoReadNotes
  • NoCreateNotes
  • NoUpdateNotes
  • NoExpungeNotes
  • NoShareNotes
  • NoEmailNotes
  • NoSendMessageToRecipients
  • NoUpdateNotebook
  • NoExpungeNotebook
  • NoSetDefaultNotebook
  • NoSetNotebookStack
  • NoPublishToPublic
  • NoPublishToBusinessLibrary
  • NoCreateTags
  • NoUpdateTags
  • NoExpungeTags
  • NoSetParentTag
  • NoCreateSharedNotebooks
  • UpdateWhichSharedNotebookRestrictions
  • ExpungeWhichSharedNotebookRestrictions
var Notebook_Restrictions_DEFAULT *NotebookRestrictions

func NewNotebookRestrictions

func NewNotebookRestrictions() *NotebookRestrictions

func (*NotebookRestrictions) GetExpungeWhichSharedNotebookRestrictions

func (p *NotebookRestrictions) GetExpungeWhichSharedNotebookRestrictions() SharedNotebookInstanceRestrictions

func (*NotebookRestrictions) GetNoCreateNotes

func (p *NotebookRestrictions) GetNoCreateNotes() bool

func (*NotebookRestrictions) GetNoCreateSharedNotebooks

func (p *NotebookRestrictions) GetNoCreateSharedNotebooks() bool

func (*NotebookRestrictions) GetNoCreateTags

func (p *NotebookRestrictions) GetNoCreateTags() bool

func (*NotebookRestrictions) GetNoEmailNotes

func (p *NotebookRestrictions) GetNoEmailNotes() bool

func (*NotebookRestrictions) GetNoExpungeNotebook

func (p *NotebookRestrictions) GetNoExpungeNotebook() bool

func (*NotebookRestrictions) GetNoExpungeNotes

func (p *NotebookRestrictions) GetNoExpungeNotes() bool

func (*NotebookRestrictions) GetNoExpungeTags

func (p *NotebookRestrictions) GetNoExpungeTags() bool

func (*NotebookRestrictions) GetNoPublishToBusinessLibrary

func (p *NotebookRestrictions) GetNoPublishToBusinessLibrary() bool

func (*NotebookRestrictions) GetNoPublishToPublic

func (p *NotebookRestrictions) GetNoPublishToPublic() bool

func (*NotebookRestrictions) GetNoReadNotes

func (p *NotebookRestrictions) GetNoReadNotes() bool

func (*NotebookRestrictions) GetNoSendMessageToRecipients

func (p *NotebookRestrictions) GetNoSendMessageToRecipients() bool

func (*NotebookRestrictions) GetNoSetDefaultNotebook

func (p *NotebookRestrictions) GetNoSetDefaultNotebook() bool

func (*NotebookRestrictions) GetNoSetNotebookStack

func (p *NotebookRestrictions) GetNoSetNotebookStack() bool

func (*NotebookRestrictions) GetNoSetParentTag

func (p *NotebookRestrictions) GetNoSetParentTag() bool

func (*NotebookRestrictions) GetNoShareNotes

func (p *NotebookRestrictions) GetNoShareNotes() bool

func (*NotebookRestrictions) GetNoUpdateNotebook

func (p *NotebookRestrictions) GetNoUpdateNotebook() bool

func (*NotebookRestrictions) GetNoUpdateNotes

func (p *NotebookRestrictions) GetNoUpdateNotes() bool

func (*NotebookRestrictions) GetNoUpdateTags

func (p *NotebookRestrictions) GetNoUpdateTags() bool

func (*NotebookRestrictions) GetUpdateWhichSharedNotebookRestrictions

func (p *NotebookRestrictions) GetUpdateWhichSharedNotebookRestrictions() SharedNotebookInstanceRestrictions

func (*NotebookRestrictions) IsSetExpungeWhichSharedNotebookRestrictions

func (p *NotebookRestrictions) IsSetExpungeWhichSharedNotebookRestrictions() bool

func (*NotebookRestrictions) IsSetNoCreateNotes

func (p *NotebookRestrictions) IsSetNoCreateNotes() bool

func (*NotebookRestrictions) IsSetNoCreateSharedNotebooks

func (p *NotebookRestrictions) IsSetNoCreateSharedNotebooks() bool

func (*NotebookRestrictions) IsSetNoCreateTags

func (p *NotebookRestrictions) IsSetNoCreateTags() bool

func (*NotebookRestrictions) IsSetNoEmailNotes

func (p *NotebookRestrictions) IsSetNoEmailNotes() bool

func (*NotebookRestrictions) IsSetNoExpungeNotebook

func (p *NotebookRestrictions) IsSetNoExpungeNotebook() bool

func (*NotebookRestrictions) IsSetNoExpungeNotes

func (p *NotebookRestrictions) IsSetNoExpungeNotes() bool

func (*NotebookRestrictions) IsSetNoExpungeTags

func (p *NotebookRestrictions) IsSetNoExpungeTags() bool

func (*NotebookRestrictions) IsSetNoPublishToBusinessLibrary

func (p *NotebookRestrictions) IsSetNoPublishToBusinessLibrary() bool

func (*NotebookRestrictions) IsSetNoPublishToPublic

func (p *NotebookRestrictions) IsSetNoPublishToPublic() bool

func (*NotebookRestrictions) IsSetNoReadNotes

func (p *NotebookRestrictions) IsSetNoReadNotes() bool

func (*NotebookRestrictions) IsSetNoSendMessageToRecipients

func (p *NotebookRestrictions) IsSetNoSendMessageToRecipients() bool

func (*NotebookRestrictions) IsSetNoSetDefaultNotebook

func (p *NotebookRestrictions) IsSetNoSetDefaultNotebook() bool

func (*NotebookRestrictions) IsSetNoSetNotebookStack

func (p *NotebookRestrictions) IsSetNoSetNotebookStack() bool

func (*NotebookRestrictions) IsSetNoSetParentTag

func (p *NotebookRestrictions) IsSetNoSetParentTag() bool

func (*NotebookRestrictions) IsSetNoShareNotes

func (p *NotebookRestrictions) IsSetNoShareNotes() bool

func (*NotebookRestrictions) IsSetNoUpdateNotebook

func (p *NotebookRestrictions) IsSetNoUpdateNotebook() bool

func (*NotebookRestrictions) IsSetNoUpdateNotes

func (p *NotebookRestrictions) IsSetNoUpdateNotes() bool

func (*NotebookRestrictions) IsSetNoUpdateTags

func (p *NotebookRestrictions) IsSetNoUpdateTags() bool

func (*NotebookRestrictions) IsSetUpdateWhichSharedNotebookRestrictions

func (p *NotebookRestrictions) IsSetUpdateWhichSharedNotebookRestrictions() bool

func (*NotebookRestrictions) Read

func (p *NotebookRestrictions) Read(iprot thrift.TProtocol) error

func (*NotebookRestrictions) String

func (p *NotebookRestrictions) String() string

func (*NotebookRestrictions) Write

func (p *NotebookRestrictions) Write(oprot thrift.TProtocol) error

type PremiumInfo

type PremiumInfo struct {
	CurrentTime                Timestamp           `thrift:"currentTime,1,required" json:"currentTime"`
	Premium                    bool                `thrift:"premium,2,required" json:"premium"`
	PremiumRecurring           bool                `thrift:"premiumRecurring,3,required" json:"premiumRecurring"`
	PremiumExpirationDate      *Timestamp          `thrift:"premiumExpirationDate,4" json:"premiumExpirationDate,omitempty"`
	PremiumExtendable          bool                `thrift:"premiumExtendable,5,required" json:"premiumExtendable"`
	PremiumPending             bool                `thrift:"premiumPending,6,required" json:"premiumPending"`
	PremiumCancellationPending bool                `thrift:"premiumCancellationPending,7,required" json:"premiumCancellationPending"`
	CanPurchaseUploadAllowance bool                `thrift:"canPurchaseUploadAllowance,8,required" json:"canPurchaseUploadAllowance"`
	SponsoredGroupName         *string             `thrift:"sponsoredGroupName,9" json:"sponsoredGroupName,omitempty"`
	SponsoredGroupRole         *SponsoredGroupRole `thrift:"sponsoredGroupRole,10" json:"sponsoredGroupRole,omitempty"`
	PremiumUpgradable          *bool               `thrift:"premiumUpgradable,11" json:"premiumUpgradable,omitempty"`
}
This structure is used to provide information about a user's Premium account.

<dl>

<dt>currentTime</dt>
  <dd>
  The server-side date and time when this data was generated.
  </dd>
<dt>premium</dt>
  <dd>
  True if the user's account is Premium.
  </dd>
<dt>premiumRecurring</dt>
  <dd>
  True if the user's account is Premium and has a recurring payment method.
  </dd>
<dt>premiumExpirationDate</dt>
  <dd>
  The date when the user's Premium account expires, or the date when the
  user's account is due for payment if it has a recurring payment method.
  </dd>
<dt>premiumExtendable</dt>
  <dd>
  True if the user is eligible for purchasing Premium account extensions.
  </dd>
<dt>premiumPending</dt>
  <dd>
  True if the user's Premium account is pending payment confirmation
  </dd>
<dt>premiumCancellationPending</dt>
  <dd>
  True if the user has requested that no further charges to be made; the
  Premium account will remain active until it expires.
  </dd>
<dt>canPurchaseUploadAllowance</dt>
  <dd>
  True if the user is eligible for purchasing additional upload allowance.
  </dd>
<dt>sponsoredGroupName</dt>
  <dd>
  The name of the sponsored group that the user is part of.
  </dd>
<dt>sponsoredGroupRole</dt>
  <dd>
  DEPRECATED - will be removed in a future update.
  </dd>
<dt>premiumUpgradable</dt>
  <dd>
  True if the user is eligible for purchasing Premium account upgrade.
  </dd>
</dl>

Attributes:

  • CurrentTime
  • Premium
  • PremiumRecurring
  • PremiumExpirationDate
  • PremiumExtendable
  • PremiumPending
  • PremiumCancellationPending
  • CanPurchaseUploadAllowance
  • SponsoredGroupName
  • SponsoredGroupRole
  • PremiumUpgradable
var User_PremiumInfo_DEFAULT *PremiumInfo

func NewPremiumInfo

func NewPremiumInfo() *PremiumInfo

func (*PremiumInfo) GetCanPurchaseUploadAllowance

func (p *PremiumInfo) GetCanPurchaseUploadAllowance() bool

func (*PremiumInfo) GetCurrentTime

func (p *PremiumInfo) GetCurrentTime() Timestamp

func (*PremiumInfo) GetPremium

func (p *PremiumInfo) GetPremium() bool

func (*PremiumInfo) GetPremiumCancellationPending

func (p *PremiumInfo) GetPremiumCancellationPending() bool

func (*PremiumInfo) GetPremiumExpirationDate

func (p *PremiumInfo) GetPremiumExpirationDate() Timestamp

func (*PremiumInfo) GetPremiumExtendable

func (p *PremiumInfo) GetPremiumExtendable() bool

func (*PremiumInfo) GetPremiumPending

func (p *PremiumInfo) GetPremiumPending() bool

func (*PremiumInfo) GetPremiumRecurring

func (p *PremiumInfo) GetPremiumRecurring() bool

func (*PremiumInfo) GetPremiumUpgradable

func (p *PremiumInfo) GetPremiumUpgradable() bool

func (*PremiumInfo) GetSponsoredGroupName

func (p *PremiumInfo) GetSponsoredGroupName() string

func (*PremiumInfo) GetSponsoredGroupRole

func (p *PremiumInfo) GetSponsoredGroupRole() SponsoredGroupRole

func (*PremiumInfo) IsSetPremiumExpirationDate

func (p *PremiumInfo) IsSetPremiumExpirationDate() bool

func (*PremiumInfo) IsSetPremiumUpgradable

func (p *PremiumInfo) IsSetPremiumUpgradable() bool

func (*PremiumInfo) IsSetSponsoredGroupName

func (p *PremiumInfo) IsSetSponsoredGroupName() bool

func (*PremiumInfo) IsSetSponsoredGroupRole

func (p *PremiumInfo) IsSetSponsoredGroupRole() bool

func (*PremiumInfo) Read

func (p *PremiumInfo) Read(iprot thrift.TProtocol) error

func (*PremiumInfo) String

func (p *PremiumInfo) String() string

func (*PremiumInfo) Write

func (p *PremiumInfo) Write(oprot thrift.TProtocol) error

type PremiumOrderStatus

type PremiumOrderStatus int64

This enumeration defines the possible states of a premium account

NONE: the user has never attempted to become a premium subscriber

PENDING: the user has requested a premium account but their charge has not

been confirmed

ACTIVE: the user has been charged and their premium account is in good standing

FAILED: the system attempted to charge the was denied. Their premium

privileges have been revoked. We will periodically attempt to re-validate
their order.

CANCELLATION_PENDING: the user has requested that no further charges be made

but the current account is still active.

CANCELED: the premium account was canceled either because of failure to pay

or user cancelation. No more attempts will be made to activate the account.
const (
	PremiumOrderStatus_NONE                 PremiumOrderStatus = 0
	PremiumOrderStatus_PENDING              PremiumOrderStatus = 1
	PremiumOrderStatus_ACTIVE               PremiumOrderStatus = 2
	PremiumOrderStatus_FAILED               PremiumOrderStatus = 3
	PremiumOrderStatus_CANCELLATION_PENDING PremiumOrderStatus = 4
	PremiumOrderStatus_CANCELED             PremiumOrderStatus = 5
)
var Accounting_PremiumServiceStatus_DEFAULT PremiumOrderStatus

func PremiumOrderStatusFromString

func PremiumOrderStatusFromString(s string) (PremiumOrderStatus, error)

func PremiumOrderStatusPtr

func PremiumOrderStatusPtr(v PremiumOrderStatus) *PremiumOrderStatus

func (PremiumOrderStatus) MarshalText

func (p PremiumOrderStatus) MarshalText() ([]byte, error)

func (PremiumOrderStatus) String

func (p PremiumOrderStatus) String() string

func (*PremiumOrderStatus) UnmarshalText

func (p *PremiumOrderStatus) UnmarshalText(text []byte) error

type PrivilegeLevel

type PrivilegeLevel int64

This enumeration defines the possible permission levels for a user. Free accounts will have a level of NORMAL and paid Premium accounts will have a level of PREMIUM.

const (
	PrivilegeLevel_NORMAL  PrivilegeLevel = 1
	PrivilegeLevel_PREMIUM PrivilegeLevel = 3
	PrivilegeLevel_VIP     PrivilegeLevel = 5
	PrivilegeLevel_MANAGER PrivilegeLevel = 7
	PrivilegeLevel_SUPPORT PrivilegeLevel = 8
	PrivilegeLevel_ADMIN   PrivilegeLevel = 9
)
var User_Privilege_DEFAULT PrivilegeLevel

func PrivilegeLevelFromString

func PrivilegeLevelFromString(s string) (PrivilegeLevel, error)

func PrivilegeLevelPtr

func PrivilegeLevelPtr(v PrivilegeLevel) *PrivilegeLevel

func (PrivilegeLevel) MarshalText

func (p PrivilegeLevel) MarshalText() ([]byte, error)

func (PrivilegeLevel) String

func (p PrivilegeLevel) String() string

func (*PrivilegeLevel) UnmarshalText

func (p *PrivilegeLevel) UnmarshalText(text []byte) error

type Publishing

type Publishing struct {
	URI               *string        `thrift:"uri,1" json:"uri,omitempty"`
	Order             *NoteSortOrder `thrift:"order,2" json:"order,omitempty"`
	Ascending         *bool          `thrift:"ascending,3" json:"ascending,omitempty"`
	PublicDescription *string        `thrift:"publicDescription,4" json:"publicDescription,omitempty"`
}

If a Notebook has been opened to the public, the Notebook will have a reference to one of these structures, which gives the location and optional description of the externally-visible public Notebook. <dl> <dt>uri</dt>

<dd>If this field is present, then the notebook is published for
mass consumption on the Internet under the provided URI, which is
relative to a defined base publishing URI defined by the service.
This field can only be modified via the web service GUI ... publishing
cannot be modified via an offline client.
<br/>
Length:  EDAM_PUBLISHING_URI_LEN_MIN - EDAM_PUBLISHING_URI_LEN_MAX
<br/>
Regex:  EDAM_PUBLISHING_URI_REGEX
</dd>

<dt>order</dt>

<dd>When the notes are publicly displayed, they will be sorted
based on the requested criteria.
</dd>

<dt>ascending</dt>

<dd>If this is set to true, then the public notes will be
displayed in ascending order (e.g. from oldest to newest).  Otherwise,
the notes will be displayed in descending order (e.g. newest to oldest).
</dd>

<dt>publicDescription</dt>

<dd>This field may be used to provide a short
description of the notebook, which may be displayed when (e.g.) the
notebook is shown in a public view.  Can't begin or end with a space.
<br/>
Length:  EDAM_PUBLISHING_DESCRIPTION_LEN_MIN -
         EDAM_PUBLISHING_DESCRIPTION_LEN_MAX
<br/>
Regex:  EDAM_PUBLISHING_DESCRIPTION_REGEX
</dd>

</dl>

Attributes:

  • URI
  • Order
  • Ascending
  • PublicDescription
var Notebook_Publishing_DEFAULT *Publishing

func NewPublishing

func NewPublishing() *Publishing

func (*Publishing) GetAscending

func (p *Publishing) GetAscending() bool

func (*Publishing) GetOrder

func (p *Publishing) GetOrder() NoteSortOrder

func (*Publishing) GetPublicDescription

func (p *Publishing) GetPublicDescription() string

func (*Publishing) GetURI

func (p *Publishing) GetURI() string

func (*Publishing) IsSetAscending

func (p *Publishing) IsSetAscending() bool

func (*Publishing) IsSetOrder

func (p *Publishing) IsSetOrder() bool

func (*Publishing) IsSetPublicDescription

func (p *Publishing) IsSetPublicDescription() bool

func (*Publishing) IsSetURI

func (p *Publishing) IsSetURI() bool

func (*Publishing) Read

func (p *Publishing) Read(iprot thrift.TProtocol) error

func (*Publishing) String

func (p *Publishing) String() string

func (*Publishing) Write

func (p *Publishing) Write(oprot thrift.TProtocol) error

type QueryFormat

type QueryFormat int64

Every search query is specified as a sequence of characters. Currently, only the USER query format is supported.

const (
	QueryFormat_USER QueryFormat = 1
	QueryFormat_SEXP QueryFormat = 2
)
var SavedSearch_Format_DEFAULT QueryFormat

func QueryFormatFromString

func QueryFormatFromString(s string) (QueryFormat, error)

func QueryFormatPtr

func QueryFormatPtr(v QueryFormat) *QueryFormat

func (QueryFormat) MarshalText

func (p QueryFormat) MarshalText() ([]byte, error)

func (QueryFormat) String

func (p QueryFormat) String() string

func (*QueryFormat) UnmarshalText

func (p *QueryFormat) UnmarshalText(text []byte) error

type ReminderEmailConfig

type ReminderEmailConfig int64

An enumeration describing the configuration state related to receiving reminder e-mails from the service. Reminder e-mails summarize notes based on their Note.attributes.reminderTime values.

DO_NOT_SEND: The user has selected to not receive reminder e-mail.

SEND_DAILY_EMAIL: The user has selected to receive reminder e-mail for those

days when there is a reminder.
const (
	ReminderEmailConfig_DO_NOT_SEND      ReminderEmailConfig = 1
	ReminderEmailConfig_SEND_DAILY_EMAIL ReminderEmailConfig = 2
)
var UserAttributes_ReminderEmailConfig_DEFAULT ReminderEmailConfig

func ReminderEmailConfigFromString

func ReminderEmailConfigFromString(s string) (ReminderEmailConfig, error)

func ReminderEmailConfigPtr

func ReminderEmailConfigPtr(v ReminderEmailConfig) *ReminderEmailConfig

func (ReminderEmailConfig) MarshalText

func (p ReminderEmailConfig) MarshalText() ([]byte, error)

func (ReminderEmailConfig) String

func (p ReminderEmailConfig) String() string

func (*ReminderEmailConfig) UnmarshalText

func (p *ReminderEmailConfig) UnmarshalText(text []byte) error

type Resource

type Resource struct {
	GUID        *GUID   `thrift:"guid,1" json:"guid,omitempty"`
	NoteGuid    *GUID   `thrift:"noteGuid,2" json:"noteGuid,omitempty"`
	Data        *Data   `thrift:"data,3" json:"data,omitempty"`
	Mime        *string `thrift:"mime,4" json:"mime,omitempty"`
	Width       *int16  `thrift:"width,5" json:"width,omitempty"`
	Height      *int16  `thrift:"height,6" json:"height,omitempty"`
	Duration    *int16  `thrift:"duration,7" json:"duration,omitempty"`
	Active      *bool   `thrift:"active,8" json:"active,omitempty"`
	Recognition *Data   `thrift:"recognition,9" json:"recognition,omitempty"`
	// unused field # 10
	Attributes        *ResourceAttributes `thrift:"attributes,11" json:"attributes,omitempty"`
	UpdateSequenceNum *int32              `thrift:"updateSequenceNum,12" json:"updateSequenceNum,omitempty"`
	AlternateData     *Data               `thrift:"alternateData,13" json:"alternateData,omitempty"`
}

Every media file that is embedded or attached to a note is represented through a Resource entry. <dl> <dt>guid</dt>

<dd>The unique identifier of this resource.  Will be set whenever
a resource is retrieved from the service, but may be null when a client
is creating a resource.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>noteGuid</dt>

<dd>The unique identifier of the Note that holds this
Resource. Will be set whenever the resource is retrieved from the service,
but may be null when a client is creating a resource.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>data</dt>

<dd>The contents of the resource.
Maximum length:  The data.body is limited to EDAM_RESOURCE_SIZE_MAX_FREE
for free accounts and EDAM_RESOURCE_SIZE_MAX_PREMIUM for premium accounts.
</dd>

<dt>mime</dt>

<dd>The MIME type for the embedded resource.  E.g. "image/gif"
<br/>
Length:  EDAM_MIME_LEN_MIN - EDAM_MIME_LEN_MAX
<br/>
Regex:  EDAM_MIME_REGEX
</dd>

<dt>width</dt>

<dd>If set, this contains the display width of this resource, in
pixels.
</dd>

<dt>height</dt>

<dd>If set, this contains the display height of this resource,
in pixels.
</dd>

<dt>duration</dt>

<dd>DEPRECATED: ignored.
</dd>

<dt>active</dt>

<dd>DEPRECATED: ignored.
</dd>

<dt>recognition</dt>

<dd>If set, this will hold the encoded data that provides
information on search and recognition within this resource.
</dd>

<dt>attributes</dt>

<dd>A list of the attributes for this resource.
</dd>

<dt>updateSequenceNum</dt>

<dd>A number identifying the last transaction to
modify the state of this object. The USN values are sequential within an
account, and can be used to compare the order of modifications within the
service.
</dd>

<dt>alternateData</dt>

<dd>Some Resources may be assigned an alternate data format by the service
which may be more appropriate for indexing or rendering than the original
data provided by the user.  In these cases, the alternate data form will
be available via this Data element.  If a Resource has no alternate form,
this field will be unset.</dd>

</dl>

Attributes:

  • GUID
  • NoteGuid
  • Data
  • Mime
  • Width
  • Height
  • Duration
  • Active
  • Recognition
  • Attributes
  • UpdateSequenceNum
  • AlternateData

func NewResource

func NewResource() *Resource

func (*Resource) GetActive

func (p *Resource) GetActive() bool

func (*Resource) GetAlternateData

func (p *Resource) GetAlternateData() *Data

func (*Resource) GetAttributes

func (p *Resource) GetAttributes() *ResourceAttributes

func (*Resource) GetData

func (p *Resource) GetData() *Data

func (*Resource) GetDuration

func (p *Resource) GetDuration() int16

func (*Resource) GetGUID

func (p *Resource) GetGUID() GUID

func (*Resource) GetHeight

func (p *Resource) GetHeight() int16

func (*Resource) GetMime

func (p *Resource) GetMime() string

func (*Resource) GetNoteGuid

func (p *Resource) GetNoteGuid() GUID

func (*Resource) GetRecognition

func (p *Resource) GetRecognition() *Data

func (*Resource) GetUpdateSequenceNum

func (p *Resource) GetUpdateSequenceNum() int32

func (*Resource) GetWidth

func (p *Resource) GetWidth() int16

func (*Resource) IsSetActive

func (p *Resource) IsSetActive() bool

func (*Resource) IsSetAlternateData

func (p *Resource) IsSetAlternateData() bool

func (*Resource) IsSetAttributes

func (p *Resource) IsSetAttributes() bool

func (*Resource) IsSetData

func (p *Resource) IsSetData() bool

func (*Resource) IsSetDuration

func (p *Resource) IsSetDuration() bool

func (*Resource) IsSetGUID

func (p *Resource) IsSetGUID() bool

func (*Resource) IsSetHeight

func (p *Resource) IsSetHeight() bool

func (*Resource) IsSetMime

func (p *Resource) IsSetMime() bool

func (*Resource) IsSetNoteGuid

func (p *Resource) IsSetNoteGuid() bool

func (*Resource) IsSetRecognition

func (p *Resource) IsSetRecognition() bool

func (*Resource) IsSetUpdateSequenceNum

func (p *Resource) IsSetUpdateSequenceNum() bool

func (*Resource) IsSetWidth

func (p *Resource) IsSetWidth() bool

func (*Resource) Read

func (p *Resource) Read(iprot thrift.TProtocol) error

func (*Resource) String

func (p *Resource) String() string

func (*Resource) Write

func (p *Resource) Write(oprot thrift.TProtocol) error

type ResourceAttributes

type ResourceAttributes struct {
	SourceURL       *string    `thrift:"sourceURL,1" json:"sourceURL,omitempty"`
	Timestamp       *Timestamp `thrift:"timestamp,2" json:"timestamp,omitempty"`
	Latitude        *float64   `thrift:"latitude,3" json:"latitude,omitempty"`
	Longitude       *float64   `thrift:"longitude,4" json:"longitude,omitempty"`
	Altitude        *float64   `thrift:"altitude,5" json:"altitude,omitempty"`
	CameraMake      *string    `thrift:"cameraMake,6" json:"cameraMake,omitempty"`
	CameraModel     *string    `thrift:"cameraModel,7" json:"cameraModel,omitempty"`
	ClientWillIndex *bool      `thrift:"clientWillIndex,8" json:"clientWillIndex,omitempty"`
	RecoType        *string    `thrift:"recoType,9" json:"recoType,omitempty"`
	FileName        *string    `thrift:"fileName,10" json:"fileName,omitempty"`
	Attachment      *bool      `thrift:"attachment,11" json:"attachment,omitempty"`
	ApplicationData *LazyMap   `thrift:"applicationData,12" json:"applicationData,omitempty"`
}

Structure holding the optional attributes of a Resource <dl> <dt>sourceURL</dt>

<dd>the original location where the resource was hosted
<br/>
 Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>timestamp</dt>

<dd>the date and time that is associated with this resource
(e.g. the time embedded in an image from a digital camera with a clock)
</dd>

<dt>latitude</dt>

<dd>the latitude where the resource was captured
</dd>

<dt>longitude</dt>

<dd>the longitude where the resource was captured
</dd>

<dt>altitude</dt>

<dd>the altitude where the resource was captured
</dd>

<dt>cameraMake</dt>

<dd>information about an image's camera, e.g. as embedded in
the image's EXIF data
<br/>
Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>cameraModel</dt>

<dd>information about an image's camera, e.g. as embedded
in the image's EXIF data
<br/>
Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
</dd>

<dt>clientWillIndex</dt>

<dd>if true, then the original client that submitted
the resource plans to submit the recognition index for this resource at a
later time.
</dd>

<dt>recoType</dt>

<dd>DEPRECATED - this field is no longer set by the service, so should
  be ignored.
</dd>

<dt>fileName</dt>

<dd>if the resource came from a source that provided an
explicit file name, the original name will be stored here.  Many resources
come from unnamed sources, so this will not always be set.
</dd>

<dt>attachment</dt>

<dd>this will be true if the resource should be displayed as an attachment,
or false if the resource should be displayed inline (if possible).
</dd>

<dt>applicationData</dt> <dd>Provides a location for applications to store a relatively small (4kb) blob of data associated with a Resource that is not visible to the user and that is opaque to the Evernote service. A single application may use at most one entry in this map, using its API consumer key as the map key. See the documentation for LazyMap for a description of when the actual map values are returned by the service. <p>To safely add or modify your application's entry in the map, use NoteStore.setResourceApplicationDataEntry. To safely remove your application's entry from the map, use NoteStore.unsetResourceApplicationDataEntry.</p> Minimum length of a name (key): EDAM_APPLICATIONDATA_NAME_LEN_MIN <br/> Sum max size of key and value: EDAM_APPLICATIONDATA_ENTRY_LEN_MAX <br/> Syntax regex for name (key): EDAM_APPLICATIONDATA_NAME_REGEX </dd>

</dl>

Attributes:

  • SourceURL
  • Timestamp
  • Latitude
  • Longitude
  • Altitude
  • CameraMake
  • CameraModel
  • ClientWillIndex
  • RecoType
  • FileName
  • Attachment
  • ApplicationData
var Resource_Attributes_DEFAULT *ResourceAttributes

func NewResourceAttributes

func NewResourceAttributes() *ResourceAttributes

func (*ResourceAttributes) GetAltitude

func (p *ResourceAttributes) GetAltitude() float64

func (*ResourceAttributes) GetApplicationData

func (p *ResourceAttributes) GetApplicationData() *LazyMap

func (*ResourceAttributes) GetAttachment

func (p *ResourceAttributes) GetAttachment() bool

func (*ResourceAttributes) GetCameraMake

func (p *ResourceAttributes) GetCameraMake() string

func (*ResourceAttributes) GetCameraModel

func (p *ResourceAttributes) GetCameraModel() string

func (*ResourceAttributes) GetClientWillIndex

func (p *ResourceAttributes) GetClientWillIndex() bool

func (*ResourceAttributes) GetFileName

func (p *ResourceAttributes) GetFileName() string

func (*ResourceAttributes) GetLatitude

func (p *ResourceAttributes) GetLatitude() float64

func (*ResourceAttributes) GetLongitude

func (p *ResourceAttributes) GetLongitude() float64

func (*ResourceAttributes) GetRecoType

func (p *ResourceAttributes) GetRecoType() string

func (*ResourceAttributes) GetSourceURL

func (p *ResourceAttributes) GetSourceURL() string

func (*ResourceAttributes) GetTimestamp

func (p *ResourceAttributes) GetTimestamp() Timestamp

func (*ResourceAttributes) IsSetAltitude

func (p *ResourceAttributes) IsSetAltitude() bool

func (*ResourceAttributes) IsSetApplicationData

func (p *ResourceAttributes) IsSetApplicationData() bool

func (*ResourceAttributes) IsSetAttachment

func (p *ResourceAttributes) IsSetAttachment() bool

func (*ResourceAttributes) IsSetCameraMake

func (p *ResourceAttributes) IsSetCameraMake() bool

func (*ResourceAttributes) IsSetCameraModel

func (p *ResourceAttributes) IsSetCameraModel() bool

func (*ResourceAttributes) IsSetClientWillIndex

func (p *ResourceAttributes) IsSetClientWillIndex() bool

func (*ResourceAttributes) IsSetFileName

func (p *ResourceAttributes) IsSetFileName() bool

func (*ResourceAttributes) IsSetLatitude

func (p *ResourceAttributes) IsSetLatitude() bool

func (*ResourceAttributes) IsSetLongitude

func (p *ResourceAttributes) IsSetLongitude() bool

func (*ResourceAttributes) IsSetRecoType

func (p *ResourceAttributes) IsSetRecoType() bool

func (*ResourceAttributes) IsSetSourceURL

func (p *ResourceAttributes) IsSetSourceURL() bool

func (*ResourceAttributes) IsSetTimestamp

func (p *ResourceAttributes) IsSetTimestamp() bool

func (*ResourceAttributes) Read

func (p *ResourceAttributes) Read(iprot thrift.TProtocol) error

func (*ResourceAttributes) String

func (p *ResourceAttributes) String() string

func (*ResourceAttributes) Write

func (p *ResourceAttributes) Write(oprot thrift.TProtocol) error

type SavedSearch

type SavedSearch struct {
	GUID              *GUID             `thrift:"guid,1" json:"guid,omitempty"`
	Name              *string           `thrift:"name,2" json:"name,omitempty"`
	Query             *string           `thrift:"query,3" json:"query,omitempty"`
	Format            *QueryFormat      `thrift:"format,4" json:"format,omitempty"`
	UpdateSequenceNum *int32            `thrift:"updateSequenceNum,5" json:"updateSequenceNum,omitempty"`
	Scope             *SavedSearchScope `thrift:"scope,6" json:"scope,omitempty"`
}

A named search associated with the account that can be quickly re-used. <dl> <dt>guid</dt>

<dd>The unique identifier of this search.  Will be set by the
service, so may be omitted by the client when creating.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>name</dt>

<dd>The name of the saved search to display in the GUI.  The
account may only contain one search with a given name (case-insensitive
compare). Can't begin or end with a space.
<br/>
Length:  EDAM_SAVED_SEARCH_NAME_LEN_MIN - EDAM_SAVED_SEARCH_NAME_LEN_MAX
<br/>
Regex:  EDAM_SAVED_SEARCH_NAME_REGEX
</dd>

<dt>query</dt>

<dd>A string expressing the search to be performed.
<br/>
Length:  EDAM_SAVED_SEARCH_QUERY_LEN_MIN - EDAM_SAVED_SEARCH_QUERY_LEN_MAX
</dd>

<dt>format</dt>

<dd>The format of the query string, to determine how to parse
and process it.
</dd>

<dt>updateSequenceNum</dt>

<dd>A number identifying the last transaction to
modify the state of this object.  The USN values are sequential within an
account, and can be used to compare the order of modifications within the
service.
</dd>

<dt>scope</dt>

<dd><p>Specifies the set of notes that should be included in the search, if
 possible.</p>
 <p>Clients are expected to search as much of the desired scope as possible,
 with the understanding that a given client may not be able to cover the full
 specified scope. For example, when executing a search that includes notes in both
 the owner's account and business notebooks, a mobile client may choose to only
 search within the user's account because it is not capable of searching both
 scopes simultaneously. When a search across multiple scopes is not possible,
 a client may choose which scope to search based on the current application
 context. If a client cannot search any of the desired scopes, it should refuse
 to execute the search.</p>
 </dd>

</dl>

Attributes:

  • GUID
  • Name
  • Query
  • Format
  • UpdateSequenceNum
  • Scope

func NewSavedSearch

func NewSavedSearch() *SavedSearch

func (*SavedSearch) GetFormat

func (p *SavedSearch) GetFormat() QueryFormat

func (*SavedSearch) GetGUID

func (p *SavedSearch) GetGUID() GUID

func (*SavedSearch) GetName

func (p *SavedSearch) GetName() string

func (*SavedSearch) GetQuery

func (p *SavedSearch) GetQuery() string

func (*SavedSearch) GetScope

func (p *SavedSearch) GetScope() *SavedSearchScope

func (*SavedSearch) GetUpdateSequenceNum

func (p *SavedSearch) GetUpdateSequenceNum() int32

func (*SavedSearch) IsSetFormat

func (p *SavedSearch) IsSetFormat() bool

func (*SavedSearch) IsSetGUID

func (p *SavedSearch) IsSetGUID() bool

func (*SavedSearch) IsSetName

func (p *SavedSearch) IsSetName() bool

func (*SavedSearch) IsSetQuery

func (p *SavedSearch) IsSetQuery() bool

func (*SavedSearch) IsSetScope

func (p *SavedSearch) IsSetScope() bool

func (*SavedSearch) IsSetUpdateSequenceNum

func (p *SavedSearch) IsSetUpdateSequenceNum() bool

func (*SavedSearch) Read

func (p *SavedSearch) Read(iprot thrift.TProtocol) error

func (*SavedSearch) String

func (p *SavedSearch) String() string

func (*SavedSearch) Write

func (p *SavedSearch) Write(oprot thrift.TProtocol) error

type SavedSearchScope

type SavedSearchScope struct {
	IncludeAccount                 *bool `thrift:"includeAccount,1" json:"includeAccount,omitempty"`
	IncludePersonalLinkedNotebooks *bool `thrift:"includePersonalLinkedNotebooks,2" json:"includePersonalLinkedNotebooks,omitempty"`
	IncludeBusinessLinkedNotebooks *bool `thrift:"includeBusinessLinkedNotebooks,3" json:"includeBusinessLinkedNotebooks,omitempty"`
}

A structure defining the scope of a SavedSearch.

<dl>

<dt>includeAccount</dt>
<dd>The search should include notes from the account that contains the SavedSearch.</dd>

<dt>includePersonalLinkedNotebooks</dt>
<dd>The search should include notes within those shared notebooks
that the user has joined that are NOT business notebooks.</dd>

<dt>includeBusinessLinkedNotebooks</dt>
<dd>The search should include notes within those shared notebooks
that the user has joined that are business notebooks in the business that
the user is currently a member of.</dd>

</dl>

Attributes:

  • IncludeAccount
  • IncludePersonalLinkedNotebooks
  • IncludeBusinessLinkedNotebooks
var SavedSearch_Scope_DEFAULT *SavedSearchScope

func NewSavedSearchScope

func NewSavedSearchScope() *SavedSearchScope

func (*SavedSearchScope) GetIncludeAccount

func (p *SavedSearchScope) GetIncludeAccount() bool

func (*SavedSearchScope) GetIncludeBusinessLinkedNotebooks

func (p *SavedSearchScope) GetIncludeBusinessLinkedNotebooks() bool

func (*SavedSearchScope) GetIncludePersonalLinkedNotebooks

func (p *SavedSearchScope) GetIncludePersonalLinkedNotebooks() bool

func (*SavedSearchScope) IsSetIncludeAccount

func (p *SavedSearchScope) IsSetIncludeAccount() bool

func (*SavedSearchScope) IsSetIncludeBusinessLinkedNotebooks

func (p *SavedSearchScope) IsSetIncludeBusinessLinkedNotebooks() bool

func (*SavedSearchScope) IsSetIncludePersonalLinkedNotebooks

func (p *SavedSearchScope) IsSetIncludePersonalLinkedNotebooks() bool

func (*SavedSearchScope) Read

func (p *SavedSearchScope) Read(iprot thrift.TProtocol) error

func (*SavedSearchScope) String

func (p *SavedSearchScope) String() string

func (*SavedSearchScope) Write

func (p *SavedSearchScope) Write(oprot thrift.TProtocol) error

type SharedNotebook

type SharedNotebook struct {
	ID                 *int64                           `thrift:"id,1" json:"id,omitempty"`
	UserId             *int32                           `thrift:"userId,2" json:"userId,omitempty"`
	NotebookGuid       *string                          `thrift:"notebookGuid,3" json:"notebookGuid,omitempty"`
	Email              *string                          `thrift:"email,4" json:"email,omitempty"`
	NotebookModifiable *bool                            `thrift:"notebookModifiable,5" json:"notebookModifiable,omitempty"`
	RequireLogin       *bool                            `thrift:"requireLogin,6" json:"requireLogin,omitempty"`
	ServiceCreated     *Timestamp                       `thrift:"serviceCreated,7" json:"serviceCreated,omitempty"`
	ShareKey           *string                          `thrift:"shareKey,8" json:"shareKey,omitempty"`
	Username           *string                          `thrift:"username,9" json:"username,omitempty"`
	ServiceUpdated     *Timestamp                       `thrift:"serviceUpdated,10" json:"serviceUpdated,omitempty"`
	Privilege          *SharedNotebookPrivilegeLevel    `thrift:"privilege,11" json:"privilege,omitempty"`
	AllowPreview       *bool                            `thrift:"allowPreview,12" json:"allowPreview,omitempty"`
	RecipientSettings  *SharedNotebookRecipientSettings `thrift:"recipientSettings,13" json:"recipientSettings,omitempty"`
}

Shared notebooks represent a relationship between a notebook and a single share invitation recipient. <dl> <dt>id</dt> <dd>the primary identifier of the share</dd>

<dt>userId</dt> <dd>the user id of the owner of the notebook</dd>

<dt>notebookGuid</dt> <dd>the GUID of the associated notebook shared.</dd>

<dt>email</dt> <dd>the email address of the recipient - used by the notebook owner to identify who they shared with.</dd>

<dt>notebookModifiable</dt> <dd>(DEPRECATED) a flag indicating the share is read/write -otherwise it's read

only.  This field is deprecated in favor of the new "privilege" field.</dd>

<dt>requireLogin</dt> <dd>(DEPRECATED) indicates that a user must login to access the share. This

field is deprecated and will be "true" for all new shared notebooks.  It
is read-only and ignored when creating or modifying a shared notebook,
except that a shared notebook can be modified to require login.
See "allowPreview" for information on privileges and shared notebooks.</dd>

<dt>serviceCreated</dt> <dd>the date the owner first created the share with the specific email

address</dd>

<dt>serviceUpdated</dt> <dd>the date the shared notebook was last updated on the service. This

will be updated when authenticateToSharedNotebook is called the first
time with a shared notebook requiring login (i.e. when the username is
bound to that shared notebook).</dd>

<dt>username</dt> <dd>the username of the user who can access this share.

Once it's assigned it cannot be changed.</dd>

<dt>privilege</dt> <dd>The privilege level granted to the notebook, activity stream, and

invitations.  See the corresponding enumeration for details.</dd>

<dt>allowPreview</dt> <dd>Whether or not to grant "READ_NOTEBOOK" privilege without an

authentication token, for authenticateToSharedNotebook(...).  With
the change to "requireLogin" always being true for new shared
notebooks, this is the only way to access a shared notebook without
an authorization token.  This setting expires after the first use
of authenticateToSharedNotebook(...) with a valid authentication
token.</dd>

<dt>recipientSettings</dt> <dd>Settings intended for use only by the recipient of this shared

notebook.  You should skip setting this value unless you want
to change the value contained inside the structure, and only if
you are the recipient.</dd>

</dl>

Attributes:

  • ID
  • UserId
  • NotebookGuid
  • Email
  • NotebookModifiable
  • RequireLogin
  • ServiceCreated
  • ServiceUpdated
  • ShareKey
  • Username
  • Privilege
  • AllowPreview
  • RecipientSettings

func NewSharedNotebook

func NewSharedNotebook() *SharedNotebook

func (*SharedNotebook) GetAllowPreview

func (p *SharedNotebook) GetAllowPreview() bool

func (*SharedNotebook) GetEmail

func (p *SharedNotebook) GetEmail() string

func (*SharedNotebook) GetID

func (p *SharedNotebook) GetID() int64

func (*SharedNotebook) GetNotebookGuid

func (p *SharedNotebook) GetNotebookGuid() string

func (*SharedNotebook) GetNotebookModifiable

func (p *SharedNotebook) GetNotebookModifiable() bool

func (*SharedNotebook) GetPrivilege

func (p *SharedNotebook) GetPrivilege() SharedNotebookPrivilegeLevel

func (*SharedNotebook) GetRecipientSettings

func (p *SharedNotebook) GetRecipientSettings() *SharedNotebookRecipientSettings

func (*SharedNotebook) GetRequireLogin

func (p *SharedNotebook) GetRequireLogin() bool

func (*SharedNotebook) GetServiceCreated

func (p *SharedNotebook) GetServiceCreated() Timestamp

func (*SharedNotebook) GetServiceUpdated

func (p *SharedNotebook) GetServiceUpdated() Timestamp

func (*SharedNotebook) GetShareKey

func (p *SharedNotebook) GetShareKey() string

func (*SharedNotebook) GetUserId

func (p *SharedNotebook) GetUserId() int32

func (*SharedNotebook) GetUsername

func (p *SharedNotebook) GetUsername() string

func (*SharedNotebook) IsSetAllowPreview

func (p *SharedNotebook) IsSetAllowPreview() bool

func (*SharedNotebook) IsSetEmail

func (p *SharedNotebook) IsSetEmail() bool

func (*SharedNotebook) IsSetID

func (p *SharedNotebook) IsSetID() bool

func (*SharedNotebook) IsSetNotebookGuid

func (p *SharedNotebook) IsSetNotebookGuid() bool

func (*SharedNotebook) IsSetNotebookModifiable

func (p *SharedNotebook) IsSetNotebookModifiable() bool

func (*SharedNotebook) IsSetPrivilege

func (p *SharedNotebook) IsSetPrivilege() bool

func (*SharedNotebook) IsSetRecipientSettings

func (p *SharedNotebook) IsSetRecipientSettings() bool

func (*SharedNotebook) IsSetRequireLogin

func (p *SharedNotebook) IsSetRequireLogin() bool

func (*SharedNotebook) IsSetServiceCreated

func (p *SharedNotebook) IsSetServiceCreated() bool

func (*SharedNotebook) IsSetServiceUpdated

func (p *SharedNotebook) IsSetServiceUpdated() bool

func (*SharedNotebook) IsSetShareKey

func (p *SharedNotebook) IsSetShareKey() bool

func (*SharedNotebook) IsSetUserId

func (p *SharedNotebook) IsSetUserId() bool

func (*SharedNotebook) IsSetUsername

func (p *SharedNotebook) IsSetUsername() bool

func (*SharedNotebook) Read

func (p *SharedNotebook) Read(iprot thrift.TProtocol) error

func (*SharedNotebook) String

func (p *SharedNotebook) String() string

func (*SharedNotebook) Write

func (p *SharedNotebook) Write(oprot thrift.TProtocol) error

type SharedNotebookInstanceRestrictions

type SharedNotebookInstanceRestrictions int64

An enumeration describing restrictions on the domain of shared notebook instances that are valid for a given operation, as used, for example, in NotebookRestrictions.

ONLY_JOINED_OR_PREVIEW: The domain consists of shared notebooks that

"belong" to the recipient or still available for preview by any recipient.
Shared notebooks that the recipient has joined (the username has already been
assigned to our user) are in the domain.  Additionally, shared notebooks
that allow preview and have not yet been joined are in the domain.

NO_SHARED_NOTEBOOKS: No shared notebooks are applicable to the operation.

const (
	SharedNotebookInstanceRestrictions_ONLY_JOINED_OR_PREVIEW SharedNotebookInstanceRestrictions = 1
	SharedNotebookInstanceRestrictions_NO_SHARED_NOTEBOOKS    SharedNotebookInstanceRestrictions = 2
)
var NotebookRestrictions_ExpungeWhichSharedNotebookRestrictions_DEFAULT SharedNotebookInstanceRestrictions
var NotebookRestrictions_UpdateWhichSharedNotebookRestrictions_DEFAULT SharedNotebookInstanceRestrictions

func SharedNotebookInstanceRestrictionsFromString

func SharedNotebookInstanceRestrictionsFromString(s string) (SharedNotebookInstanceRestrictions, error)

func (SharedNotebookInstanceRestrictions) MarshalText

func (p SharedNotebookInstanceRestrictions) MarshalText() ([]byte, error)

func (SharedNotebookInstanceRestrictions) String

func (*SharedNotebookInstanceRestrictions) UnmarshalText

func (p *SharedNotebookInstanceRestrictions) UnmarshalText(text []byte) error

type SharedNotebookPrivilegeLevel

type SharedNotebookPrivilegeLevel int64

Privilege levels for accessing shared notebooks.

READ_NOTEBOOK: Recipient is able to read the contents of the shared notebook

but does to have access to information about other recipients of the
notebook or the activity stream information.

MODIFY_NOTEBOOK_PLUS_ACTIVITY: Recipient has rights to read and modify the contents

of the shared notebook, including the right to move notes to the trash and to create
notes in the notebook.  The recipient can also access information about other
recipients and the activity stream.

READ_NOTEBOOK_PLUS_ACTIVITY: Recipient has READ_NOTEBOOK rights and can also

access information about other recipients and the activity stream.

GROUP: If the user belongs to a group, such as a Business, that has a defined

privilege level, use the privilege level of the group as the privilege for
the individual.

FULL_ACCESS: Recipient has full rights to the shared notebook and recipient lists,

including privilege to revoke and create invitations and to change privilege
levels on invitations for individuals.  This privilege level is primarily intended
for use by individual shares.

BUSINESS_FULL_ACCESS: Intended for use with Business Notebooks, a BUSINESS_FULL_ACCESS level is FULL_ACCESS with the additional rights to change how the notebook will appear in the business library, including the rights to publish and unpublish the notebook from the library.

const (
	SharedNotebookPrivilegeLevel_READ_NOTEBOOK                 SharedNotebookPrivilegeLevel = 0
	SharedNotebookPrivilegeLevel_MODIFY_NOTEBOOK_PLUS_ACTIVITY SharedNotebookPrivilegeLevel = 1
	SharedNotebookPrivilegeLevel_READ_NOTEBOOK_PLUS_ACTIVITY   SharedNotebookPrivilegeLevel = 2
	SharedNotebookPrivilegeLevel_GROUP                         SharedNotebookPrivilegeLevel = 3
	SharedNotebookPrivilegeLevel_FULL_ACCESS                   SharedNotebookPrivilegeLevel = 4
	SharedNotebookPrivilegeLevel_BUSINESS_FULL_ACCESS          SharedNotebookPrivilegeLevel = 5
)
var BusinessNotebook_Privilege_DEFAULT SharedNotebookPrivilegeLevel
var SharedNotebook_Privilege_DEFAULT SharedNotebookPrivilegeLevel

func SharedNotebookPrivilegeLevelFromString

func SharedNotebookPrivilegeLevelFromString(s string) (SharedNotebookPrivilegeLevel, error)

func (SharedNotebookPrivilegeLevel) MarshalText

func (p SharedNotebookPrivilegeLevel) MarshalText() ([]byte, error)

func (SharedNotebookPrivilegeLevel) String

func (*SharedNotebookPrivilegeLevel) UnmarshalText

func (p *SharedNotebookPrivilegeLevel) UnmarshalText(text []byte) error

type SharedNotebookRecipientSettings

type SharedNotebookRecipientSettings struct {
	ReminderNotifyEmail *bool `thrift:"reminderNotifyEmail,1" json:"reminderNotifyEmail,omitempty"`
	ReminderNotifyInApp *bool `thrift:"reminderNotifyInApp,2" json:"reminderNotifyInApp,omitempty"`
}

Settings meant for the recipient of a shared notebook, such as for indicating which types of notifications the recipient wishes for reminders, etc.

The reminderNotifyEmail and reminderNotifyInApp fields have a 3-state read value but a 2-state write value. On read, it is possible to observe "unset", true, or false. The initial state is "unset". When you choose to set a value, you may set it to either true or false, but you cannot unset the value. Once one of these members has a true/false value, it will always have a true/false value.

<dl> <dt>reminderNotifyEmail</dt> <dd>Indicates that the user wishes to receive daily e-mail notifications

for reminders associated with the shared notebook.  This may be
true only for business notebooks that belong to the business of
which the user is a member.  You may only set this value on a
notebook in your business.</dd>

<dt>reminderNotifyInApp</dt> <dd>Indicates that the user wishes to receive notifications for

reminders by applications that support providing such
notifications.  The exact nature of the notification is defined
by the individual applications.</dd>

</dl>

Attributes:

  • ReminderNotifyEmail
  • ReminderNotifyInApp
var SharedNotebook_RecipientSettings_DEFAULT *SharedNotebookRecipientSettings

func NewSharedNotebookRecipientSettings

func NewSharedNotebookRecipientSettings() *SharedNotebookRecipientSettings

func (*SharedNotebookRecipientSettings) GetReminderNotifyEmail

func (p *SharedNotebookRecipientSettings) GetReminderNotifyEmail() bool

func (*SharedNotebookRecipientSettings) GetReminderNotifyInApp

func (p *SharedNotebookRecipientSettings) GetReminderNotifyInApp() bool

func (*SharedNotebookRecipientSettings) IsSetReminderNotifyEmail

func (p *SharedNotebookRecipientSettings) IsSetReminderNotifyEmail() bool

func (*SharedNotebookRecipientSettings) IsSetReminderNotifyInApp

func (p *SharedNotebookRecipientSettings) IsSetReminderNotifyInApp() bool

func (*SharedNotebookRecipientSettings) Read

func (*SharedNotebookRecipientSettings) String

func (*SharedNotebookRecipientSettings) Write

type SponsoredGroupRole

type SponsoredGroupRole int64

Enumeration of the roles that a User can have within a sponsored group.

GROUP_MEMBER: The user is a member of the group with no special privileges.

GROUP_ADMIN: The user is an administrator within the group.

GROUP_OWNER: The user is the owner of the group.

const (
	SponsoredGroupRole_GROUP_MEMBER SponsoredGroupRole = 1
	SponsoredGroupRole_GROUP_ADMIN  SponsoredGroupRole = 2
	SponsoredGroupRole_GROUP_OWNER  SponsoredGroupRole = 3
)
var PremiumInfo_SponsoredGroupRole_DEFAULT SponsoredGroupRole

func SponsoredGroupRoleFromString

func SponsoredGroupRoleFromString(s string) (SponsoredGroupRole, error)

func SponsoredGroupRolePtr

func SponsoredGroupRolePtr(v SponsoredGroupRole) *SponsoredGroupRole

func (SponsoredGroupRole) MarshalText

func (p SponsoredGroupRole) MarshalText() ([]byte, error)

func (SponsoredGroupRole) String

func (p SponsoredGroupRole) String() string

func (*SponsoredGroupRole) UnmarshalText

func (p *SponsoredGroupRole) UnmarshalText(text []byte) error

type Tag

type Tag struct {
	GUID              *GUID   `thrift:"guid,1" json:"guid,omitempty"`
	Name              *string `thrift:"name,2" json:"name,omitempty"`
	ParentGuid        *GUID   `thrift:"parentGuid,3" json:"parentGuid,omitempty"`
	UpdateSequenceNum *int32  `thrift:"updateSequenceNum,4" json:"updateSequenceNum,omitempty"`
}
A tag within a user's account is a unique name which may be organized
a simple hierarchy.

<dl>

<dt>guid</dt>
  <dd>The unique identifier of this tag. Will be set by the service,
  so may be omitted by the client when creating the Tag.
  <br/>
  Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
  <br/>
  Regex:  EDAM_GUID_REGEX
  </dd>

<dt>name</dt>
  <dd>A sequence of characters representing the tag's identifier.
  Case is preserved, but is ignored for comparisons.
  This means that an account may only have one tag with a given name, via
  case-insensitive comparison, so an account may not have both "food" and
  "Food" tags.
  May not contain a comma (','), and may not begin or end with a space.
  <br/>
  Length:  EDAM_TAG_NAME_LEN_MIN - EDAM_TAG_NAME_LEN_MAX
  <br/>
  Regex:  EDAM_TAG_NAME_REGEX
  </dd>

<dt>parentGuid</dt>
  <dd>If this is set, then this is the GUID of the tag that
  holds this tag within the tag organizational hierarchy.  If this is
  not set, then the tag has no parent and it is a "top level" tag.
  Cycles are not allowed (e.g. a->parent->parent == a) and will be
  rejected by the service.
  <br/>
  Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
  <br/>
  Regex:  EDAM_GUID_REGEX
  </dd>

<dt>updateSequenceNum</dt>
  <dd>A number identifying the last transaction to
  modify the state of this object.  The USN values are sequential within an
  account, and can be used to compare the order of modifications within the
  service.
  </dd>
</dl>

Attributes:

  • GUID
  • Name
  • ParentGuid
  • UpdateSequenceNum

func NewTag

func NewTag() *Tag

func (*Tag) GetGUID

func (p *Tag) GetGUID() GUID

func (*Tag) GetName

func (p *Tag) GetName() string

func (*Tag) GetParentGuid

func (p *Tag) GetParentGuid() GUID

func (*Tag) GetUpdateSequenceNum

func (p *Tag) GetUpdateSequenceNum() int32

func (*Tag) IsSetGUID

func (p *Tag) IsSetGUID() bool

func (*Tag) IsSetName

func (p *Tag) IsSetName() bool

func (*Tag) IsSetParentGuid

func (p *Tag) IsSetParentGuid() bool

func (*Tag) IsSetUpdateSequenceNum

func (p *Tag) IsSetUpdateSequenceNum() bool

func (*Tag) Read

func (p *Tag) Read(iprot thrift.TProtocol) error

func (*Tag) String

func (p *Tag) String() string

func (*Tag) Write

func (p *Tag) Write(oprot thrift.TProtocol) error

type Timestamp

type Timestamp int64

An Evernote Timestamp is the date and time of an event in UTC time. This is expressed as a specific number of milliseconds since the standard base "epoch" of:

January 1, 1970, 00:00:00 GMT

NOTE: the time is expressed at the resolution of milliseconds, but the value is only precise to the level of seconds. This means that the last three (decimal) digits of the timestamp will be '000'.

The Thrift IDL specification does not include a native date/time type, so this value is used instead.

The service will accept timestamp values (e.g. for Note created and update times) between 1000-01-01 and 9999-12-31

var Accounting_LastFailedCharge_DEFAULT Timestamp
var Accounting_LastRequestedCharge_DEFAULT Timestamp
var Accounting_LastSuccessfulCharge_DEFAULT Timestamp
var Accounting_NextChargeDate_DEFAULT Timestamp
var Accounting_NextPaymentDue_DEFAULT Timestamp
var Accounting_PremiumLockUntil_DEFAULT Timestamp
var Accounting_PremiumServiceStart_DEFAULT Timestamp
var Accounting_Updated_DEFAULT Timestamp
var Accounting_UploadLimitEnd_DEFAULT Timestamp
var NoteAttributes_ReminderDoneTime_DEFAULT Timestamp
var NoteAttributes_ReminderTime_DEFAULT Timestamp
var NoteAttributes_ShareDate_DEFAULT Timestamp
var NoteAttributes_SubjectDate_DEFAULT Timestamp
var Note_Created_DEFAULT Timestamp
var Note_Deleted_DEFAULT Timestamp
var Note_Updated_DEFAULT Timestamp
var Notebook_ServiceCreated_DEFAULT Timestamp
var Notebook_ServiceUpdated_DEFAULT Timestamp
var PremiumInfo_PremiumExpirationDate_DEFAULT Timestamp
var ResourceAttributes_Timestamp_DEFAULT Timestamp
var SharedNotebook_ServiceCreated_DEFAULT Timestamp
var SharedNotebook_ServiceUpdated_DEFAULT Timestamp
var UserAttributes_DateAgreedToTermsOfService_DEFAULT Timestamp
var UserAttributes_EmailOptOutDate_DEFAULT Timestamp
var UserAttributes_PartnerEmailOptInDate_DEFAULT Timestamp
var UserAttributes_SentEmailDate_DEFAULT Timestamp
var User_Created_DEFAULT Timestamp
var User_Deleted_DEFAULT Timestamp
var User_Updated_DEFAULT Timestamp

func TimestampPtr

func TimestampPtr(v Timestamp) *Timestamp

type User

type User struct {
	ID       *UserID `thrift:"id,1" json:"id,omitempty"`
	Username *string `thrift:"username,2" json:"username,omitempty"`
	Email    *string `thrift:"email,3" json:"email,omitempty"`
	Name     *string `thrift:"name,4" json:"name,omitempty"`
	// unused field # 5
	Timezone  *string         `thrift:"timezone,6" json:"timezone,omitempty"`
	Privilege *PrivilegeLevel `thrift:"privilege,7" json:"privilege,omitempty"`
	// unused field # 8
	Created *Timestamp `thrift:"created,9" json:"created,omitempty"`
	Updated *Timestamp `thrift:"updated,10" json:"updated,omitempty"`
	Deleted *Timestamp `thrift:"deleted,11" json:"deleted,omitempty"`
	// unused field # 12
	Active           *bool             `thrift:"active,13" json:"active,omitempty"`
	ShardId          *string           `thrift:"shardId,14" json:"shardId,omitempty"`
	Attributes       *UserAttributes   `thrift:"attributes,15" json:"attributes,omitempty"`
	Accounting       *Accounting       `thrift:"accounting,16" json:"accounting,omitempty"`
	PremiumInfo      *PremiumInfo      `thrift:"premiumInfo,17" json:"premiumInfo,omitempty"`
	BusinessUserInfo *BusinessUserInfo `thrift:"businessUserInfo,18" json:"businessUserInfo,omitempty"`
}
This represents the information about a single user account.

<dl>

<dt>id</dt>
  <dd>The unique numeric identifier for the account, which will not
  change for the lifetime of the account.
  </dd>

<dt>username</dt>
  <dd>The name that uniquely identifies a single user account. This name
  may be presented by the user, along with their password, to log into
  their account.
  May only contain a-z, 0-9, or '-', and may not start or end with the '-'
  <br/>
  Length:  EDAM_USER_USERNAME_LEN_MIN - EDAM_USER_USERNAME_LEN_MAX
  <br/>
  Regex:  EDAM_USER_USERNAME_REGEX
  </dd>

<dt>email</dt>
  <dd>The email address registered for the user.  Must comply with
  RFC 2821 and RFC 2822.<br/>
  Third party applications that authenticate using OAuth do not have
  access to this field.
  Length:  EDAM_EMAIL_LEN_MIN - EDAM_EMAIL_LEN_MAX
  <br/>
  Regex:  EDAM_EMAIL_REGEX
  </dd>

<dt>name</dt>
  <dd>The printable name of the user, which may be a combination
  of given and family names.  This is used instead of separate "first"
  and "last" names due to variations in international name format/order.
  May not start or end with a whitespace character.  May contain any
  character but carriage return or newline (Unicode classes Zl and Zp).
  <br/>
  Length:  EDAM_USER_NAME_LEN_MIN - EDAM_USER_NAME_LEN_MAX
  <br/>
  Regex:  EDAM_USER_NAME_REGEX
  </dd>

<dt>timezone</dt>
  <dd>The zone ID for the user's default location.  If present,
  this may be used to localize the display of any timestamp for which no
  other timezone is available.
  The format must be encoded as a standard zone ID such as
  "America/Los_Angeles" or "GMT+08:00"
  <br/>
  Length:  EDAM_TIMEZONE_LEN_MIN - EDAM_TIMEZONE_LEN_MAX
  <br/>
  Regex:  EDAM_TIMEZONE_REGEX
  </dd>

<dt>privilege</dt>
  <dd>The level of access permitted for the user.
  </dd>

<dt>created</dt>
  <dd>The date and time when this user account was created in the
  service.
  </dd>

<dt>updated</dt>
  <dd>The date and time when this user account was last modified
  in the service.
  </dd>

<dt>deleted</dt>
  <dd>If the account has been deleted from the system (e.g. as
  the result of a legal request by the user), the date and time of the
  deletion will be represented here.  If not, this value will not be set.
  </dd>

<dt>active</dt>
  <dd>If the user account is available for login and
  synchronization, this flag will be set to true.
  </dd>

<dt>shardId</dt>
  <dd>DEPRECATED - Client applications should have no need to use this field.
  </dd>

<dt>attributes</dt>
  <dd>If present, this will contain a list of the attributes
  for this user account.
  </dd>

<dt>accounting</dt>
  <dd>Bookkeeping information for the user's subscription.
  </dd>

<dt>premiumInfo</dt>
  <dd>If present, this will contain a set of commerce information
  relating to the user's premium service level.
  </dd>

<dt>businessUserInfo</dt>
  <dd>If present, this will contain a set of business information
  relating to the user's business membership.  If not present, the
  user is not currently part of a business.
  </dd>
</dl>

Attributes:

  • ID
  • Username
  • Email
  • Name
  • Timezone
  • Privilege
  • Created
  • Updated
  • Deleted
  • Active
  • ShardId
  • Attributes
  • Accounting
  • PremiumInfo
  • BusinessUserInfo
var Notebook_Contact_DEFAULT *User

func NewUser

func NewUser() *User

func (*User) GetAccounting

func (p *User) GetAccounting() *Accounting

func (*User) GetActive

func (p *User) GetActive() bool

func (*User) GetAttributes

func (p *User) GetAttributes() *UserAttributes

func (*User) GetBusinessUserInfo

func (p *User) GetBusinessUserInfo() *BusinessUserInfo

func (*User) GetCreated

func (p *User) GetCreated() Timestamp

func (*User) GetDeleted

func (p *User) GetDeleted() Timestamp

func (*User) GetEmail

func (p *User) GetEmail() string

func (*User) GetID

func (p *User) GetID() UserID

func (*User) GetName

func (p *User) GetName() string

func (*User) GetPremiumInfo

func (p *User) GetPremiumInfo() *PremiumInfo

func (*User) GetPrivilege

func (p *User) GetPrivilege() PrivilegeLevel

func (*User) GetShardId

func (p *User) GetShardId() string

func (*User) GetTimezone

func (p *User) GetTimezone() string

func (*User) GetUpdated

func (p *User) GetUpdated() Timestamp

func (*User) GetUsername

func (p *User) GetUsername() string

func (*User) IsSetAccounting

func (p *User) IsSetAccounting() bool

func (*User) IsSetActive

func (p *User) IsSetActive() bool

func (*User) IsSetAttributes

func (p *User) IsSetAttributes() bool

func (*User) IsSetBusinessUserInfo

func (p *User) IsSetBusinessUserInfo() bool

func (*User) IsSetCreated

func (p *User) IsSetCreated() bool

func (*User) IsSetDeleted

func (p *User) IsSetDeleted() bool

func (*User) IsSetEmail

func (p *User) IsSetEmail() bool

func (*User) IsSetID

func (p *User) IsSetID() bool

func (*User) IsSetName

func (p *User) IsSetName() bool

func (*User) IsSetPremiumInfo

func (p *User) IsSetPremiumInfo() bool

func (*User) IsSetPrivilege

func (p *User) IsSetPrivilege() bool

func (*User) IsSetShardId

func (p *User) IsSetShardId() bool

func (*User) IsSetTimezone

func (p *User) IsSetTimezone() bool

func (*User) IsSetUpdated

func (p *User) IsSetUpdated() bool

func (*User) IsSetUsername

func (p *User) IsSetUsername() bool

func (*User) Read

func (p *User) Read(iprot thrift.TProtocol) error

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(oprot thrift.TProtocol) error

type UserAttributes

type UserAttributes struct {
	DefaultLocationName   *string  `thrift:"defaultLocationName,1" json:"defaultLocationName,omitempty"`
	DefaultLatitude       *float64 `thrift:"defaultLatitude,2" json:"defaultLatitude,omitempty"`
	DefaultLongitude      *float64 `thrift:"defaultLongitude,3" json:"defaultLongitude,omitempty"`
	Preactivation         *bool    `thrift:"preactivation,4" json:"preactivation,omitempty"`
	ViewedPromotions      []string `thrift:"viewedPromotions,5" json:"viewedPromotions,omitempty"`
	IncomingEmailAddress  *string  `thrift:"incomingEmailAddress,6" json:"incomingEmailAddress,omitempty"`
	RecentMailedAddresses []string `thrift:"recentMailedAddresses,7" json:"recentMailedAddresses,omitempty"`
	// unused field # 8
	Comments *string `thrift:"comments,9" json:"comments,omitempty"`
	// unused field # 10
	DateAgreedToTermsOfService *Timestamp `thrift:"dateAgreedToTermsOfService,11" json:"dateAgreedToTermsOfService,omitempty"`
	MaxReferrals               *int32     `thrift:"maxReferrals,12" json:"maxReferrals,omitempty"`
	ReferralCount              *int32     `thrift:"referralCount,13" json:"referralCount,omitempty"`
	RefererCode                *string    `thrift:"refererCode,14" json:"refererCode,omitempty"`
	SentEmailDate              *Timestamp `thrift:"sentEmailDate,15" json:"sentEmailDate,omitempty"`
	SentEmailCount             *int32     `thrift:"sentEmailCount,16" json:"sentEmailCount,omitempty"`
	DailyEmailLimit            *int32     `thrift:"dailyEmailLimit,17" json:"dailyEmailLimit,omitempty"`
	EmailOptOutDate            *Timestamp `thrift:"emailOptOutDate,18" json:"emailOptOutDate,omitempty"`
	PartnerEmailOptInDate      *Timestamp `thrift:"partnerEmailOptInDate,19" json:"partnerEmailOptInDate,omitempty"`
	PreferredLanguage          *string    `thrift:"preferredLanguage,20" json:"preferredLanguage,omitempty"`
	PreferredCountry           *string    `thrift:"preferredCountry,21" json:"preferredCountry,omitempty"`
	ClipFullPage               *bool      `thrift:"clipFullPage,22" json:"clipFullPage,omitempty"`
	TwitterUserName            *string    `thrift:"twitterUserName,23" json:"twitterUserName,omitempty"`
	TwitterId                  *string    `thrift:"twitterId,24" json:"twitterId,omitempty"`
	GroupName                  *string    `thrift:"groupName,25" json:"groupName,omitempty"`
	RecognitionLanguage        *string    `thrift:"recognitionLanguage,26" json:"recognitionLanguage,omitempty"`
	// unused field # 27
	ReferralProof       *string              `thrift:"referralProof,28" json:"referralProof,omitempty"`
	EducationalDiscount *bool                `thrift:"educationalDiscount,29" json:"educationalDiscount,omitempty"`
	BusinessAddress     *string              `thrift:"businessAddress,30" json:"businessAddress,omitempty"`
	HideSponsorBilling  *bool                `thrift:"hideSponsorBilling,31" json:"hideSponsorBilling,omitempty"`
	TaxExempt           *bool                `thrift:"taxExempt,32" json:"taxExempt,omitempty"`
	UseEmailAutoFiling  *bool                `thrift:"useEmailAutoFiling,33" json:"useEmailAutoFiling,omitempty"`
	ReminderEmailConfig *ReminderEmailConfig `thrift:"reminderEmailConfig,34" json:"reminderEmailConfig,omitempty"`
}
A structure holding the optional attributes that can be stored
on a User.  These are generally less critical than the core User fields.

<dl>

<dt>defaultLocationName</dt>
  <dd>the location string that should be associated
  with the user in order to determine where notes are taken if not otherwise
  specified.<br/>
  Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>defaultLatitude</dt>
  <dd>if set, this is the latitude that should be
  assigned to any notes that have no other latitude information.
  </dd>

<dt>defaultLongitude</dt>
  <dd>if set, this is the longitude that should be
  assigned to any notes that have no other longitude information.
  </dd>

<dt>preactivation</dt>
  <dd>if set, the user account is not yet confirmed for
  login.  I.e. the account has been created, but we are still waiting for
  the user to complete the activation step.
  </dd>

<dt>viewedPromotions</dt>
  <dd>a list of promotions the user has seen.
   This list may occasionally be modified by the system when promotions are
   no longer available.<br/>
   Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>incomingEmailAddress</dt>
  <dd>if set, this is the email address that the
   user may send email to in order to add an email note directly into the
   account via the SMTP email gateway.  This is the part of the email
   address before the '@' symbol ... our domain is not included.
   If this is not set, the user may not add notes via the gateway.<br/>
   Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>recentMailedAddresses</dt>
  <dd>if set, this will contain a list of email
   addresses that have recently been used as recipients
   of outbound emails by the user.  This can be used to pre-populate a
   list of possible destinations when a user wishes to send a note via
   email.<br/>
   Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX each<br/>
   Max:  EDAM_USER_RECENT_MAILED_ADDRESSES_MAX entries
  </dd>

<dt>comments</dt>
  <dd>Free-form text field that may hold general support
   information, etc.<br/>
   Length:  EDAM_ATTRIBUTE_LEN_MIN - EDAM_ATTRIBUTE_LEN_MAX
  </dd>

<dt>dateAgreedToTermsOfService</dt>
  <dd>The date/time when the user agreed to
   the terms of service.  This can be used as the effective "start date"
   for the account.
  </dd>

<dt>maxReferrals</dt>
  <dd>The number of referrals that the user is permitted
   to make.
  </dd>

<dt>referralCount</dt>
  <dd>The number of referrals sent from this account.
  </dd>

<dt>refererCode</dt>
  <dd>A code indicating where the user was sent from. AKA
   promotion code
  </dd>

<dt>sentEmailDate</dt>
  <dd>The most recent date when the user sent outbound
   emails from the service.  Used with sentEmailCount to limit the number
   of emails that can be sent per day.
  </dd>

<dt>sentEmailCount</dt>
  <dd>The number of emails that were sent from the user
   via the service on sentEmailDate.  Used to enforce a limit on the number
   of emails per user per day to prevent spamming.
  </dd>

<dt>dailyEmailLimit</dt>
  <dd>If set, this is the maximum number of emails that
   may be sent in a given day from this account.  If unset, the server will
   use the configured default limit.
  </dd>

<dt>emailOptOutDate</dt>
  <dd>If set, this is the date when the user asked
   to be excluded from offers and promotions sent by Evernote.  If not set,
   then the user currently agrees to receive these messages.
  </dd>

<dt>partnerEmailOptInDate</dt>
  <dd>If set, this is the date when the user asked
   to be included in offers and promotions sent by Evernote's partners.
   If not sent, then the user currently does not agree to receive these
   emails.
  </dd>

<dt>preferredLanguage</dt>
  <dd>a 2 character language codes based on:
      http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt used for
     localization purposes to determine what language to use for the web
     interface and for other direct communication (e.g. emails).
  </dd>

<dt>preferredCountry</dt>
  <dd>Preferred country code based on ISO 3166-1-alpha-2 indicating the
  users preferred country</dd>

<dt>clipFullPage</dt>
  <dd>Boolean flag set to true if the user wants to clip full pages by
  default when they use the web clipper without a selection.</dd>

<dt>twitterUserName</dt>
  <dd>The username of the account of someone who has chosen to enable
  Twittering into Evernote.  This value is subject to change, since users
  may change their Twitter user name.</dd>

<dt>twitterId</dt>
  <dd>The unique identifier of the user's Twitter account if that user
  has chosen to enable Twittering into Evernote.</dd>

<dt>groupName</dt>
  <dd>A name identifier used to identify a particular set of branding and
   light customization.</dd>

<dt>recognitionLanguage</dt>
  <dd>a 2 character language codes based on:
      http://ftp.ics.uci.edu/pub/ietf/http/related/iso639.txt
      If set, this is used to determine the language that should be used
      when processing images and PDF files to find text.
      If not set, then the 'preferredLanguage' will be used.
  </dd>

<dt>educationalInstitution</dt>
  <dd>a flag indicating that the user is part of an educational institution which
  makes them eligible for discounts on bulk purchases
  </dd>

<dt>businessAddress</dt>
  <dd>A string recording the business address of a Sponsored Account user who has requested invoicing.
  </dd>

<dt>hideSponsorBilling</dt>
  <dd>A flag indicating whether to hide the billing information on a sponsored
      account owner's settings page
  </dd>

<dt>taxExempt</dt>
  <dd>A flag indicating the user's sponsored group is exempt from sale tax
  </dd>

<dt>useEmailAutoFiling</dt>
  <dd>A flag indicating whether the user chooses to allow Evernote to automatically
      file and tag emailed notes
  </dd>

<dt>reminderEmailConfig</dt>
  <dd>Configuration state for whether or not the user wishes to receive
      reminder e-mail.  This setting applies to both the reminder e-mail sent
      for personal reminder notes and for the reminder e-mail sent for reminder
      notes in the user's business notebooks that the user has configured for
      e-mail notifications.
  </dd>
</dl>

Attributes:

  • DefaultLocationName
  • DefaultLatitude
  • DefaultLongitude
  • Preactivation
  • ViewedPromotions
  • IncomingEmailAddress
  • RecentMailedAddresses
  • Comments
  • DateAgreedToTermsOfService
  • MaxReferrals
  • ReferralCount
  • RefererCode
  • SentEmailDate
  • SentEmailCount
  • DailyEmailLimit
  • EmailOptOutDate
  • PartnerEmailOptInDate
  • PreferredLanguage
  • PreferredCountry
  • ClipFullPage
  • TwitterUserName
  • TwitterId
  • GroupName
  • RecognitionLanguage
  • ReferralProof
  • EducationalDiscount
  • BusinessAddress
  • HideSponsorBilling
  • TaxExempt
  • UseEmailAutoFiling
  • ReminderEmailConfig
var User_Attributes_DEFAULT *UserAttributes

func NewUserAttributes

func NewUserAttributes() *UserAttributes

func (*UserAttributes) GetBusinessAddress

func (p *UserAttributes) GetBusinessAddress() string

func (*UserAttributes) GetClipFullPage

func (p *UserAttributes) GetClipFullPage() bool

func (*UserAttributes) GetComments

func (p *UserAttributes) GetComments() string

func (*UserAttributes) GetDailyEmailLimit

func (p *UserAttributes) GetDailyEmailLimit() int32

func (*UserAttributes) GetDateAgreedToTermsOfService

func (p *UserAttributes) GetDateAgreedToTermsOfService() Timestamp

func (*UserAttributes) GetDefaultLatitude

func (p *UserAttributes) GetDefaultLatitude() float64

func (*UserAttributes) GetDefaultLocationName

func (p *UserAttributes) GetDefaultLocationName() string

func (*UserAttributes) GetDefaultLongitude

func (p *UserAttributes) GetDefaultLongitude() float64

func (*UserAttributes) GetEducationalDiscount

func (p *UserAttributes) GetEducationalDiscount() bool

func (*UserAttributes) GetEmailOptOutDate

func (p *UserAttributes) GetEmailOptOutDate() Timestamp

func (*UserAttributes) GetGroupName

func (p *UserAttributes) GetGroupName() string

func (*UserAttributes) GetHideSponsorBilling

func (p *UserAttributes) GetHideSponsorBilling() bool

func (*UserAttributes) GetIncomingEmailAddress

func (p *UserAttributes) GetIncomingEmailAddress() string

func (*UserAttributes) GetMaxReferrals

func (p *UserAttributes) GetMaxReferrals() int32

func (*UserAttributes) GetPartnerEmailOptInDate

func (p *UserAttributes) GetPartnerEmailOptInDate() Timestamp

func (*UserAttributes) GetPreactivation

func (p *UserAttributes) GetPreactivation() bool

func (*UserAttributes) GetPreferredCountry

func (p *UserAttributes) GetPreferredCountry() string

func (*UserAttributes) GetPreferredLanguage

func (p *UserAttributes) GetPreferredLanguage() string

func (*UserAttributes) GetRecentMailedAddresses

func (p *UserAttributes) GetRecentMailedAddresses() []string

func (*UserAttributes) GetRecognitionLanguage

func (p *UserAttributes) GetRecognitionLanguage() string

func (*UserAttributes) GetRefererCode

func (p *UserAttributes) GetRefererCode() string

func (*UserAttributes) GetReferralCount

func (p *UserAttributes) GetReferralCount() int32

func (*UserAttributes) GetReferralProof

func (p *UserAttributes) GetReferralProof() string

func (*UserAttributes) GetReminderEmailConfig

func (p *UserAttributes) GetReminderEmailConfig() ReminderEmailConfig

func (*UserAttributes) GetSentEmailCount

func (p *UserAttributes) GetSentEmailCount() int32

func (*UserAttributes) GetSentEmailDate

func (p *UserAttributes) GetSentEmailDate() Timestamp

func (*UserAttributes) GetTaxExempt

func (p *UserAttributes) GetTaxExempt() bool

func (*UserAttributes) GetTwitterId

func (p *UserAttributes) GetTwitterId() string

func (*UserAttributes) GetTwitterUserName

func (p *UserAttributes) GetTwitterUserName() string

func (*UserAttributes) GetUseEmailAutoFiling

func (p *UserAttributes) GetUseEmailAutoFiling() bool

func (*UserAttributes) GetViewedPromotions

func (p *UserAttributes) GetViewedPromotions() []string

func (*UserAttributes) IsSetBusinessAddress

func (p *UserAttributes) IsSetBusinessAddress() bool

func (*UserAttributes) IsSetClipFullPage

func (p *UserAttributes) IsSetClipFullPage() bool

func (*UserAttributes) IsSetComments

func (p *UserAttributes) IsSetComments() bool

func (*UserAttributes) IsSetDailyEmailLimit

func (p *UserAttributes) IsSetDailyEmailLimit() bool

func (*UserAttributes) IsSetDateAgreedToTermsOfService

func (p *UserAttributes) IsSetDateAgreedToTermsOfService() bool

func (*UserAttributes) IsSetDefaultLatitude

func (p *UserAttributes) IsSetDefaultLatitude() bool

func (*UserAttributes) IsSetDefaultLocationName

func (p *UserAttributes) IsSetDefaultLocationName() bool

func (*UserAttributes) IsSetDefaultLongitude

func (p *UserAttributes) IsSetDefaultLongitude() bool

func (*UserAttributes) IsSetEducationalDiscount

func (p *UserAttributes) IsSetEducationalDiscount() bool

func (*UserAttributes) IsSetEmailOptOutDate

func (p *UserAttributes) IsSetEmailOptOutDate() bool

func (*UserAttributes) IsSetGroupName

func (p *UserAttributes) IsSetGroupName() bool

func (*UserAttributes) IsSetHideSponsorBilling

func (p *UserAttributes) IsSetHideSponsorBilling() bool

func (*UserAttributes) IsSetIncomingEmailAddress

func (p *UserAttributes) IsSetIncomingEmailAddress() bool

func (*UserAttributes) IsSetMaxReferrals

func (p *UserAttributes) IsSetMaxReferrals() bool

func (*UserAttributes) IsSetPartnerEmailOptInDate

func (p *UserAttributes) IsSetPartnerEmailOptInDate() bool

func (*UserAttributes) IsSetPreactivation

func (p *UserAttributes) IsSetPreactivation() bool

func (*UserAttributes) IsSetPreferredCountry

func (p *UserAttributes) IsSetPreferredCountry() bool

func (*UserAttributes) IsSetPreferredLanguage

func (p *UserAttributes) IsSetPreferredLanguage() bool

func (*UserAttributes) IsSetRecentMailedAddresses

func (p *UserAttributes) IsSetRecentMailedAddresses() bool

func (*UserAttributes) IsSetRecognitionLanguage

func (p *UserAttributes) IsSetRecognitionLanguage() bool

func (*UserAttributes) IsSetRefererCode

func (p *UserAttributes) IsSetRefererCode() bool

func (*UserAttributes) IsSetReferralCount

func (p *UserAttributes) IsSetReferralCount() bool

func (*UserAttributes) IsSetReferralProof

func (p *UserAttributes) IsSetReferralProof() bool

func (*UserAttributes) IsSetReminderEmailConfig

func (p *UserAttributes) IsSetReminderEmailConfig() bool

func (*UserAttributes) IsSetSentEmailCount

func (p *UserAttributes) IsSetSentEmailCount() bool

func (*UserAttributes) IsSetSentEmailDate

func (p *UserAttributes) IsSetSentEmailDate() bool

func (*UserAttributes) IsSetTaxExempt

func (p *UserAttributes) IsSetTaxExempt() bool

func (*UserAttributes) IsSetTwitterId

func (p *UserAttributes) IsSetTwitterId() bool

func (*UserAttributes) IsSetTwitterUserName

func (p *UserAttributes) IsSetTwitterUserName() bool

func (*UserAttributes) IsSetUseEmailAutoFiling

func (p *UserAttributes) IsSetUseEmailAutoFiling() bool

func (*UserAttributes) IsSetViewedPromotions

func (p *UserAttributes) IsSetViewedPromotions() bool

func (*UserAttributes) Read

func (p *UserAttributes) Read(iprot thrift.TProtocol) error

func (*UserAttributes) String

func (p *UserAttributes) String() string

func (*UserAttributes) Write

func (p *UserAttributes) Write(oprot thrift.TProtocol) error

type UserID

type UserID int32

Every Evernote account is assigned a unique numeric identifier which will not change for the life of the account. This is independent of the (string-based) "username" which is known by the user for login purposes. The user should have no reason to know their UserID.

var NoteAttributes_CreatorId_DEFAULT UserID
var NoteAttributes_LastEditorId_DEFAULT UserID
var User_ID_DEFAULT UserID

func UserIDPtr

func UserIDPtr(v UserID) *UserID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL