v2.0.8

Added OAuth2 client-credentials support. Set client_id/client_secret on ClientConfig instead of api_key and the SDK handles the token exchange and refresh automatically:

1let config = ClientConfig {
2 client_id: Some(CLIENT_ID.to_string()),
3 client_secret: Some(CLIENT_SECRET.to_string()),
4 base_url: Environment::Sandbox.url().to_string(),
5 ..Default::default()
6};
7
8let client = ApiClient::new(config).expect("Failed to build client");

The existing api_key field still works unchanged — no action needed if you’re not switching auth methods. See the Rust SDK guide and Authentication to compare both methods.