Created
July 26, 2014 13:21
-
-
Save ThomasLocke/2225a652504c1c55f32f to your computer and use it in GitHub Desktop.
Google Cloud Datastore Dart example, configuration
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
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