#xythantiops_api

1 messages ¡ Page 1 of 1 (latest)

pastel widgetBOT
#

👋 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.

strange flicker
#

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();
floral cliff
#

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

strange flicker
#

What is the test_clock parameter I should pass? I do have the ID for my test clock

floral cliff
strange flicker
#

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?

floral cliff
#

sorry, I don't understand. Do you mean you are trying to list customers via the CLI?

strange flicker
#

I wanted to know if I could use the test clock in the CLI requests?

floral cliff
#

are you also trying to list customers with a test clock parameter with the CLI?

#

use test clock is a very broad statement

strange flicker
#

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

floral cliff
#

stripe get /v1/customers --data test_clock="clock_xxx"