saloon icon indicating copy to clipboard operation
saloon copied to clipboard

🤠 Build beautiful API integrations and SDKs with Saloon

Results 68 saloon issues
Sort by recently updated
recently updated
newest added

I recently ran into an issue where my connector had a default Content-Type of `application/json` and the request had a different Content-Type added by the body trait (`HasFormBody`) but because...

I'm encountering an issue with the rate limit plugin in my project. Specifically, when using the resolveLimits function with the sequence Limit::allow(1)->everySeconds(1)->sleep(), the plugin doesn't consistently adhere to the specified...

triage

Hey :) I've been trying to think up a good way to skip authentication if a request has already been cached. So for example, straight from the docs: ```php

I wanted to fetch the access token using ->getAccessToken() from within the default auth so every request has a valid access token by default. However, getAccessToken in turn triggers a...

question

This adds a new `HasEndpointPlaceholders` trait which can be (optionally) used on any Saloon Request as syntax sugar. So instead of overriding `resolveEndpoint()` like so: ```php class GetUser extends Request...

Closes https://github.com/saloonphp/saloon/issues/417 This pull request adds support for type-hinting a request class as the first parameter of the closure passed to `MockClient#assertSent`. This allows running this kind of test: ```php...

Closes https://github.com/saloonphp/saloon/issues/416 This pull request allows merging data in fixtures: ```php MockResponse::fixture('user', merge: [ 'name' => 'Sam Carré', ]) ``` This is useful when the mocked response is used by...

I stumbled across something rather annoying with the pagination plugin, perhaps I am misunderstanding something. Clarification would be appreciated. I'm working with an API that uses `limit` and `page` for...

This PR adds `|Stringable` to the `set` methods in the OAuthConfig class that accept a string parameter. In my use case, I'm constructing URLs using the [spatie/url](https://github.com/spatie/url) package and would...

I'm sure there are much smarter ways to go about what I'm trying to do. I've reviewed the documentation and I can't find what I need. ``` MockClient::global([ // ❌...