This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef enum{ | |
kBox, | |
kOneDrive | |
} CRService; | |
id<CRCloudStorageProtocol> service; | |
CRBox * box = [[CRBox alloc] initWithClientId:@"[Box Client Identifier]" | |
clientSecret:@"[Box Client Secret]"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var service: CloudStorageProtocol | |
let box = Box( | |
clientId: "[Box Client Identifier]", | |
clientSecret: "[Box Client Secret]" | |
) | |
let onedrive = OneDrive( | |
clientId: "[OneDrive Client Identifier]", | |
clientSecret: "[OneDrive Client Secret]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CloudStorage service; | |
Box box = new Box( | |
this, | |
"[Box Client Identifier]", | |
"[Box Client Secret]" | |
); | |
OneDrive onedrive = new OneDrive( | |
this, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box service = new Box( | |
this, | |
"[Box Client Identifier]", | |
"[Box Client Secret]" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CRBox service = new CRBox( | |
"[Box Client Identifier]" | |
"[Box Client Secret]" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box service = new Box( | |
new LocalReceiver(8082), | |
"[Box Client Identifier]", | |
"[Box Client Secret]", | |
"http://localhost:12345/auth", | |
"someState" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const service = new cloudrail.services.Box( | |
cloudrail.RedirectReceivers.getLocalAuthenticator(8082), | |
"[Box Client Identifier]", | |
"[Box Client Secret]", | |
"http://localhost:12345/auth", | |
"someState" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let service = Box( | |
clientId: "[Box Client Identifier]", | |
clientSecret: "[Box Client Secret]" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CRBox * service = [[CRBox alloc] initWithClientId:@"[Box Client Identifier]" | |
clientSecret:@"[Box Client Secret]"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Box service = new Box( | |
this, | |
"[Box Client Identifier]", | |
"[Box Client Secret]" | |
); |