File indexing completed on 2025-01-19 03:55:39
0001 #include "o2hubic.h" 0002 #include "o2replyserver.h" 0003 #include <QHostAddress> 0004 0005 static const char *HubicScope = "usage.r,account.r,getAllLinks.r,credentials.r,activate.w,links.drw"; 0006 static const char *HubicEndpoint = "https://api.hubic.com/oauth/auth/"; 0007 static const char *HubicTokenUrl = "https://api.hubic.com/oauth/token/"; 0008 static const char *HubicRefreshUrl = "https://api.hubic.com/oauth/token/"; 0009 0010 O2Hubic::O2Hubic(QObject *parent): O2(parent) { 0011 setRequestUrl(HubicEndpoint); 0012 setTokenUrl(HubicTokenUrl); 0013 setRefreshTokenUrl(HubicRefreshUrl); 0014 setScope(HubicScope); 0015 setLocalhostPolicy("http://localhost:%1/"); 0016 } 0017 0018 #include "moc_o2hubic.cpp"