QEverCloud  6.1.0
Unofficial Evernote Cloud API for Qt
Public Member Functions | Public Attributes | List of all members
qevercloud::EvernoteOAuthWebView::OAuthResult Struct Reference

#include <OAuth.h>

Inheritance diagram for qevercloud::EvernoteOAuthWebView::OAuthResult:
qevercloud::Printable

Public Member Functions

virtual void print (QTextStream &strm) const override
 
- Public Member Functions inherited from qevercloud::Printable
 Printable ()=default
 
virtual ~Printable ()=default
 
virtual QString toString () const
 

Public Attributes

QString noteStoreUrl
 
Timestamp expires
 authenticationToken time of expiration. More...
 
QString shardId
 usually is not used More...
 
UserID userId
 same as PublicUserInfo::userId More...
 
QString webApiUrlPrefix
 see PublicUserInfo::webApiUrlPrefix More...
 
QString authenticationToken
 This is what this all was for! More...
 
QList< QNetworkCookie > cookies
 

Detailed Description

Holds data that is returned by Evernote on a successful authentication

Member Function Documentation

◆ print()

virtual void qevercloud::EvernoteOAuthWebView::OAuthResult::print ( QTextStream &  strm) const
overridevirtual

Implements qevercloud::Printable.

Member Data Documentation

◆ authenticationToken

QString qevercloud::EvernoteOAuthWebView::OAuthResult::authenticationToken

This is what this all was for!

Cookies set by Evernote during OAuth procedure. In April 2020 these cookies silently started to be required for UserStore API calls. Probably it was a bug on Evernote side which hopefully would be fixed at some point but nevertheless cookies set during OAuth procedure are now available as a part of OAuth result and can be used in subsequent calls to Evernote service. These cookies can be set when creating an instance of IRequestContext. Then this context can be used in QEverCloud calls. Cookies from context would propagate to HTTP requests performed by QEverCloud. See this thread on Evernote discussions for more details: https://discussion.evernote.com/topic/124257-calls-to-userstore-from-evernote-api-stopped-working

◆ cookies

QList<QNetworkCookie> qevercloud::EvernoteOAuthWebView::OAuthResult::cookies

◆ expires

Timestamp qevercloud::EvernoteOAuthWebView::OAuthResult::expires

authenticationToken time of expiration.

◆ noteStoreUrl

QString qevercloud::EvernoteOAuthWebView::OAuthResult::noteStoreUrl

note store url for the user; no need to question UserStore::getNoteStoreUrl for it.

◆ shardId

QString qevercloud::EvernoteOAuthWebView::OAuthResult::shardId

usually is not used

◆ userId

UserID qevercloud::EvernoteOAuthWebView::OAuthResult::userId

◆ webApiUrlPrefix

QString qevercloud::EvernoteOAuthWebView::OAuthResult::webApiUrlPrefix