summaryrefslogtreecommitdiff
path: root/src/apiuseraccount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apiuseraccount.h')
-rw-r--r--src/apiuseraccount.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/apiuseraccount.h b/src/apiuseraccount.h
index 829654a5..628337f8 100644
--- a/src/apiuseraccount.h
+++ b/src/apiuseraccount.h
@@ -65,7 +65,12 @@ public:
bool isValid() const;
/**
- * api key
+ * OAuth access token
+ */
+ const QString& accessToken() const;
+
+ /**
+ * OAuth access token
*/
const QString& apiKey() const;
@@ -90,9 +95,14 @@ public:
const APILimits& limits() const;
/**
- * sets the api key
+ * sets the OAuth access token
+ */
+ APIUserAccount& accessToken(const QString& token);
+
+ /**
+ * sets the OAuth access token
*/
- APIUserAccount& apiKey(const QString& key);
+ APIUserAccount& apiKey(const QString& apiKey);
/**
* sets the user id
@@ -132,7 +142,7 @@ public:
bool exhausted() const;
private:
- QString m_key, m_id, m_name;
+ QString m_accessToken, m_apiKey, m_id, m_name;
APIUserAccountTypes m_type;
APILimits m_limits;
};