Skip to content

Instantly share code, notes, and snippets.

View felixkm's full-sized avatar

Felix Kollmar felixkm

View GitHub Profile
typedef enum{
kBox,
kOneDrive
} CRService;
id<CRCloudStorageProtocol> service;
CRBox * box = [[CRBox alloc] initWithClientId:@"[Box Client Identifier]"
clientSecret:@"[Box Client Secret]"];
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]"
CloudStorage service;
Box box = new Box(
this,
"[Box Client Identifier]",
"[Box Client Secret]"
);
OneDrive onedrive = new OneDrive(
this,
Box service = new Box(
this,
"[Box Client Identifier]",
"[Box Client Secret]"
);
CRBox service = new CRBox(
"[Box Client Identifier]"
"[Box Client Secret]"
);
Box service = new Box(
new LocalReceiver(8082),
"[Box Client Identifier]",
"[Box Client Secret]",
"http://localhost:12345/auth",
"someState"
);
const service = new cloudrail.services.Box(
cloudrail.RedirectReceivers.getLocalAuthenticator(8082),
"[Box Client Identifier]",
"[Box Client Secret]",
"http://localhost:12345/auth",
"someState"
);
let service = Box(
clientId: "[Box Client Identifier]",
clientSecret: "[Box Client Secret]"
)
CRBox * service = [[CRBox alloc] initWithClientId:@"[Box Client Identifier]"
clientSecret:@"[Box Client Secret]"];
Box service = new Box(
this,
"[Box Client Identifier]",
"[Box Client Secret]"
);