コード例 #1
0
ファイル: example_test.go プロジェクト: ReinhardHsu/platform
func ExampleNew() {
	// These are your AWS tokens. Note that Turk do not support IAM.
	// So you'll have to use your main profile's tokens.
	var auth = aws.Auth{AccessKey: "<ACCESS_KEY>", SecretKey: "<SECRET_KEY>"}
	turk = mturk.New(auth, true) // true to use sandbox mode
}
コード例 #2
0
ファイル: example_test.go プロジェクト: aalness/goamz
func ExampleNew() {
	// These are your AWS tokens. Note that Turk do not support IAM.
	// So you'll have to use your main profile's tokens.
	auth := aws.NewAuth("<ACCESS_KEY>", "<SECRET_KEY>", "", time.Time{})
	turk = mturk.New(auth, true) // true to use sandbox mode
}