Skip to content
New issue

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

Feature - Added API Deprecations Resource #282

Merged
merged 2 commits into from
Dec 14, 2022

Conversation

whobutsb
Copy link
Contributor

@whobutsb whobutsb commented Dec 13, 2022

I have added a new Shopify API Resource to retrieve the Shopify API Deprecations that Shopify has logged in their system. This is helpful for developers to stay up to date with deprecations that are coming up in the future. The resource returns an array of API deprecations example:

[0]=>
  array(8) {
    ["api_type"]=>
    string(4) "REST"
    ["description"]=>
    string(83) "Some customer fields have been deprecated from the Admin REST API's Order resource."
    ["documentation_url"]=>
    string(88) "https://shopify.dev/changelog/property-deprecations-in-the-rest-admin-api-order-resource"
    ["endpoint"]=>
    string(5) "Order"
    ["last_call_at"]=>
    string(27) "2022-12-13T16:59:32.000000Z"
    ["migration_deadline"]=>
    string(27) "2023-04-01T15:00:00.000000Z"
    ["graphql_schema_name"]=>
    NULL
    ["version"]=>
    string(7) "2022-07"
  }

Usage
$shopify->ApiDeprecations()->get()

More Information
https://shopify.dev/api/admin-rest/2022-04/resources/deprecated-api-calls#get-deprecated-api-calls

Thank you for the consideration of this PR, my team and myself would find this as a helpful inclusion to the library.

PS - I also have submitted a PR for Callbacks after Curl requests, would it be possible to include this in the library as well? #276

@whobutsb whobutsb force-pushed the feature/api-deprecations-query branch from c9fc2ea to 958c35c Compare December 13, 2022 19:36
@tareqtms tareqtms merged commit 38b31fc into phpclassic:master Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants