Graph Reference
GraphConnection class
Script
Function
class GraphConnection
{
// connection state
bool isConnected();
string getUserId();
// Authentication
string getAuthorizeUrl(string login_hint);
string getResponseUrl();
bool setAuthorizationResponse(string ResponseUrl);
bool hasAdminScope();
string getAdminConsentUrl();
string getAdminResponseUrl();
bool checkAdminConsentResponse(string ResponseUrl);
// OneDrive
class Drive
{
string id;
string name;
string description;
string url;
int64 sizeTotal, sizeFree;
time_t created;
};
class DriveItem
{
string id;
string driveId;
bool isFolder;
string name;
string path;
string downloadUrl;
int64 size;
time_t created, modified;
};
bool getPersonalDrive(Drive &);
bool getDriveItem(DriveItem &, string driveId, string path);
vector<DriveItem> getChildItems(DriveItem);
bool createChildFolder(DriveItem &newFolder, DriveItem parent);
bool renameMoveItem(DriveItem &, string newName, string newParentItemId);
bool deleteItem(DriveItem);
bool uploadFile(DriveItem &, DriveItem parent, string fileName, string localFilePath);
bool uploadFile(DriveItem &, string localFilePath);
bool uploadFile(DriveItem &, string localFilePath, string sessionUrl);
bool setCallback(callbackObject);
};OneDrive file operations
Script
Function
Script
Function
Script
Function
File upload
Script
Function
Script
Function
Last updated
Was this helpful?