Skip to content

Commit 74bda9f

Browse files
committed
1 parent e088f55 commit 74bda9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

messaging/topic_mgt.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
)
2626

2727
const (
28-
iidEndpoint = "https://iid.googleapis.com/iid/v1"
29-
iidSubscribe = ":batchAdd"
30-
iidUnsubscribe = ":batchRemove"
28+
iidEndpoint = "https://iid.googleapis.com/iid"
29+
iidSubscribe = "v1:batchAdd"
30+
iidUnsubscribe = "v1:batchRemove"
3131
)
3232

3333
var iidErrorCodes = map[string]struct{ Code, Msg string }{
@@ -164,7 +164,7 @@ func (c *iidClient) makeTopicManagementRequest(ctx context.Context, req *iidRequ
164164

165165
request := &internal.Request{
166166
Method: http.MethodPost,
167-
URL: fmt.Sprintf("%s/%s", c.iidEndpoint, req.op),
167+
URL: fmt.Sprintf("%s%s", c.iidEndpoint, req.op),
168168
Body: internal.NewJSONEntity(req),
169169
}
170170
var result iidResponse

0 commit comments

Comments
 (0)