Files @ 7291e4c1ca28
Branch filter:

Location: libtransport.git/3rdparty/o2/src/o1freshbooks.h

Jan Kaluza
Add 3rdparty oauth 2 library
#ifndef O1FRESHBOOKS_H
#define O1FRESHBOOKS_H

#include "o1.h"

class O1Freshbooks: public O1 {
    Q_OBJECT

public:
    explicit O1Freshbooks(QObject *parent = 0): O1(parent)
    {
    }

    void setClientId(const QString &value)
    {
        O1::setClientId(value);

        setRequestTokenUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_request.php"));
        setAuthorizeUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_authorize.php"));
        setAccessTokenUrl(QUrl("https://" + clientId() + ".freshbooks.com/oauth/oauth_access.php"));
    }


};

#endif // O1FRESHBOOKS_H