#xythantiops_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1268788708279058527
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
In the CLI, I ran stripe get customers and with the PHP SDK, I ran:
$stripe = new \Stripe\StripeClient(env('STRIPE_SECRET_KEY'));
$customers = $stripe->customers->all();
hello! Those Customers have a test clock. when calling a List API, the returned set of objects omits any that are associated with test clocks, unless a test_clock, customer, or subscription parameter is passed in, in which case, the relevant objects are returned in the response.
we're working on improving our docs so that this is clearly mentioned to avoid confusion
What is the test_clock parameter I should pass? I do have the ID for my test clock
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This worked in the SDK, $customers = $stripe->customers->all(['test_clock' => env('STRIPE_TEST_CLOCK')]);. How would I use a test clock on the CLI?
sorry, I don't understand. Do you mean you are trying to list customers via the CLI?
I wanted to know if I could use the test clock in the CLI requests?
are you also trying to list customers with a test clock parameter with the CLI?
use test clock is a very broad statement
Yes, using a test clock parameter with the CLI. The SDK will work for what I am doing, I am just curious about the CLI