mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
feat(Shopify Node): Update Shopify API version (#10155)
This commit is contained in:
parent
40a5226e24
commit
e2ee91569a
|
@ -4,7 +4,6 @@ import type {
|
|||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class ShopifyAccessTokenApi implements ICredentialType {
|
||||
name = 'shopifyAccessTokenApi';
|
||||
|
||||
|
@ -51,7 +50,7 @@ export class ShopifyAccessTokenApi implements ICredentialType {
|
|||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '=https://{{$credentials?.shopSubdomain}}.myshopify.com/admin/api/2019-10',
|
||||
baseURL: '=https://{{$credentials?.shopSubdomain}}.myshopify.com/admin/api/2024-07',
|
||||
url: '/products.json',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -6,7 +6,6 @@ import type {
|
|||
IHttpRequestOptions,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class ShopifyApi implements ICredentialType {
|
||||
name = 'shopifyApi';
|
||||
|
||||
|
@ -63,7 +62,7 @@ export class ShopifyApi implements ICredentialType {
|
|||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
baseURL: '=https://{{$credentials.shopSubdomain}}.myshopify.com/admin/api/2019-10',
|
||||
baseURL: '=https://{{$credentials.shopSubdomain}}.myshopify.com/admin/api/2024-07',
|
||||
url: '/products.json',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -38,7 +38,7 @@ export async function shopifyApiRequest(
|
|||
const options: IRequestOptions = {
|
||||
method,
|
||||
qs: query,
|
||||
uri: uri || `https://${credentials.shopSubdomain}.myshopify.com/admin/api/2019-10${resource}`,
|
||||
uri: uri || `https://${credentials.shopSubdomain}.myshopify.com/admin/api/2024-07/${resource}`,
|
||||
body,
|
||||
json: true,
|
||||
};
|
||||
|
|
|
@ -63,6 +63,13 @@ export class Shopify implements INodeType {
|
|||
},
|
||||
],
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Shopify API Version: 2024-07',
|
||||
type: 'notice',
|
||||
name: 'apiVersion',
|
||||
default: '',
|
||||
isNodeSetting: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Authentication',
|
||||
name: 'authentication',
|
||||
|
|
Loading…
Reference in a new issue