Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created July 26, 2014 13:21
Show Gist options
  • Save ThomasLocke/2225a652504c1c55f32f to your computer and use it in GitHub Desktop.
Save ThomasLocke/2225a652504c1c55f32f to your computer and use it in GitHub Desktop.
Google Cloud Datastore Dart example, configuration
library configuration;
import 'dart:io';
import 'package:google_datastore_v1beta2_api/datastore_v1beta2_api_console.dart';
class Config {
static String get privateKey => new File('privatekey.pem').readAsStringSync();
static const String projectId = 'project-id';
static const String projectNumber = 'project-number';
static const String scopes =
'${Datastore.DATASTORE_SCOPE} ${Datastore.USERINFO_EMAIL_SCOPE}';
static const String serviceEmail = 'something@developer.gserviceaccount.com';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment