-
Notifications
You must be signed in to change notification settings - Fork 6
/
notification_test.go
18 lines (16 loc) · 18.2 KB
/
notification_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package apple_test
import (
"github.com/smartwalle/apple"
"testing"
)
func TestDecodeNotification(t *testing.T) {
var data = `{"signedPayload": "eyJhbGciOiJFUzI1NiIsIng1YyI6WyJNSUlFTURDQ0E3YWdBd0lCQWdJUWFQb1BsZHZwU29FSDBsQnJqRFB2OWpBS0JnZ3Foa2pPUFFRREF6QjFNVVF3UWdZRFZRUURERHRCY0hCc1pTQlhiM0pzWkhkcFpHVWdSR1YyWld4dmNHVnlJRkpsYkdGMGFXOXVjeUJEWlhKMGFXWnBZMkYwYVc5dUlFRjFkR2h2Y21sMGVURUxNQWtHQTFVRUN3d0NSell4RXpBUkJnTlZCQW9NQ2tGd2NHeGxJRWx1WXk0eEN6QUpCZ05WQkFZVEFsVlRNQjRYRFRJeE1EZ3lOVEF5TlRBek5Gb1hEVEl6TURreU5EQXlOVEF6TTFvd2daSXhRREErQmdOVkJBTU1OMUJ5YjJRZ1JVTkRJRTFoWXlCQmNIQWdVM1J2Y21VZ1lXNWtJR2xVZFc1bGN5QlRkRzl5WlNCU1pXTmxhWEIwSUZOcFoyNXBibWN4TERBcUJnTlZCQXNNSTBGd2NHeGxJRmR2Y214a2QybGtaU0JFWlhabGJHOXdaWElnVW1Wc1lYUnBiMjV6TVJNd0VRWURWUVFLREFwQmNIQnNaU0JKYm1NdU1Rc3dDUVlEVlFRR0V3SlZVekJaTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5QXdFSEEwSUFCT29UY2FQY3BlaXBOTDllUTA2dEN1N3BVY3dkQ1hkTjh2R3FhVWpkNThaOHRMeGlVQzBkQmVBK2V1TVlnZ2gxLzVpQWsrRk14VUZtQTJhMXI0YUNaOFNqZ2dJSU1JSUNCREFNQmdOVkhSTUJBZjhFQWpBQU1COEdBMVVkSXdRWU1CYUFGRDh2bENOUjAxREpta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kzUTFaUzV0WldscWFTNXRlV3h2WjNNdVRXOXVkR2hzZVM1UWNtVnRhWFZ0TG5SbGMzUWlMQ0p3Y205a2RXTjBTV1FpT2lKamIyMHVjSEp2YW1WamREVmxMbTFsYVdwcExtMTViRzluY3k1TmIyNTBhR3g1TGxCeVpXMXBkVzB1ZEdWemRDSXNJbUYxZEc5U1pXNWxkMU4wWVhSMWN5STZNU3dpYzJsbmJtVmtSR0YwWlNJNk1UWTFNalF6TWpFME5EVXpOeXdpWlc1MmFYSnZibTFsYm5RaU9pSlRZVzVrWW05NEluMC53NF9SdTlZdkRfOHkzNW83M2UzUzVFd3hEMXVST0JFTFdHSl9DellJQmRlbG5GWm9UdFdsamk4cFpBTm1xQ1VxODVkeHA3MmhreG1DWVI3cm12bHJhdyJ9LCJ2ZXJzaW9uIjoiMi4wIn0.khc9ZwQngf1P99s_sJCHm68BBLoNe1jbJQktGXlpk_Djgoe9rqpfi3BrQcbYZ-xGm1YcR6FW8KQD-YBhHt771Q"}`
var notification, err = apple.DecodeNotification([]byte(data))
if err != nil {
t.Fatal(err)
}
t.Log(notification.NotificationType)
t.Log(notification.NotificationUUID)
t.Log(notification.Data.Renewal)
t.Log(notification.Data.Transaction)
}