We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The SmugMug API supports an advanced syntax for expansions using a _config parameter, documented at https://api.smugmug.com/api/v2/doc/advanced/config.html
_config
Currently, I can make use of this in phpSmug by creating the appropriate array and then encoding it myself:
$advanced = [ 'filter' => [ 'Name', 'Description' ], 'filteruri' => [ 'HighlightImage' ], 'expand' => [ 'HighlightImage' => [ 'filter' => [ 'ThumbnailUrl' ], 'filteruri' => [] ] ] ]; $request_options = [ '_expandmethod' => 'inline', '_config' => json_encode($advanced) ]; $client->get('user/me!albums', $request_options);
It would be nice if phpSmug recognized the _config key in an $options array and performed the JSON encoding automatically.
$options
The text was updated successfully, but these errors were encountered:
Seems reasonable enough. Will take a look when I do the other expansions stuff.
Sorry, something went wrong.
No branches or pull requests
The SmugMug API supports an advanced syntax for expansions using a
_config
parameter, documented at https://api.smugmug.com/api/v2/doc/advanced/config.htmlCurrently, I can make use of this in phpSmug by creating the appropriate array and then encoding it myself:
It would be nice if phpSmug recognized the
_config
key in an$options
array and performed the JSON encoding automatically.The text was updated successfully, but these errors were encountered: