Exemple #1
0
func PublishMessage(msgOpts *sns.PublishOpt) {
	var conn *sns.SNS = sns.New(aws.Auth{AccessKeyId, AccessSecret}, aws.USEast)
	_, err := conn.Publish(msgOpts)
	if err != nil {
		fmt.Println(err)
		os.Exit(1)
	}
}
Exemple #2
0
func (s *S) SetUpSuite(c *C) {
	s.HTTPSuite.SetUpSuite(c)
	auth := aws.Auth{"abc", "123"}
	s.sns = sns.New(auth, aws.Region{SNSEndpoint: testServer.URL})
}