Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 752 Bytes

2.0-Upgrade.md

File metadata and controls

8 lines (6 loc) · 752 Bytes

Upgrading to chartmogul-go 2.0.0

The package upgrade brings breaking changes to the Metrics API. All other APIs remain unaffected. Please note the following changes:

  • If you used the Metrics API to get a customer's activities or subscriptions, make the following changes in the namespace
    • api.MetricsListSubscriptions(&cm.Cursor{PerPage: 1},"cus_922c2672-ee04-11e6-bea8-7fac984477db") should be replaced with api.MetricsListCustomerSubscriptions(&cm.Cursor{PerPage: 1},"cus_922c2672-ee04-11e6-bea8-7fac984477db")
    • api.MetricsListActivities(&cm.Cursor{PerPage: 1},"cus_922c2672-ee04-11e6-bea8-7fac984477db") should be replaced with api.MetricsListCustomerActivities(&cm.Cursor{PerPage: 1},"cus_922c2672-ee04-11e6-bea8-7fac984477db")