twilio / twilio-go

A Go package for communicating with the Twilio API.
MIT License
272 stars 40 forks source link

FetchNotification #171

Closed bashdrew closed 2 years ago

bashdrew commented 2 years ago

I am trying to get the error code by calling FetchNotification. Shouldn't line 36 in accounts_notifications.go be:

path := "/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}/Notifications.json"

instead of

path := "/2010-04-01/Accounts/{AccountSid}/Notifications/{Sid}.json"

https://github.com/twilio/twilio-go/blob/04caa2a435cf33fe4efb3b1c3fd3df514dc00379/rest/api/v2010/accounts_notifications.go#L36