The rawrequests functions for Post, Get, and Delete methods rely on global configuration which can be cumbersome when using these methods to call /v2/ APIs. Instead, the recommendation is to use the client model (introduced in https://github.com/stripe/stripe-go/pull/1929) which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.
The individual rawrequests functions for Post, Get, and Delete methods are removed in favor of the client model which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.
Why?
The
rawrequests
functions for Post, Get, and Delete methods rely on global configuration which can be cumbersome when using these methods to call/v2/
APIs. Instead, the recommendation is to use the client model (introduced in https://github.com/stripe/stripe-go/pull/1929) which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.What?
Post
,Get
, andDelete
See also
This is a follow up to https://github.com/stripe/stripe-go/pull/1929
Changelog
The individual
rawrequests
functions for Post, Get, and Delete methods are removed in favor of the client model which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.