mobilePlatformApplications
Requires access scope. Please contact Shopify Support to enable this scope for your app.
List the mobile platform applications.
MobilePlatformApplicationConnection arguments
- Anchor to afterafter•
The elements that come after the specified cursor.
- Anchor to beforebefore•
The elements that come before the specified cursor.
- Anchor to firstfirst•
The first
n
elements from the paginated list.- Anchor to lastlast•
The last
n
elements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Anchor to Possible returnsPossible returns
- Anchor to edgesedges•
The connection between the node and its parent. Each edge contains a minimum of the edge's cursor and the node.
- Anchor to nodesnodes•[Mobile
Platform non-nullApplication!]! A list of nodes that are contained in MobilePlatformApplicationEdge. You can fetch data about an individual node, or you can follow the edges to fetch data about a collection of related nodes. At each node, you specify the fields that you want to retrieve.
- Anchor to pageInfopage•
Info PageInfo! non-null An object that’s used to retrieve cursor information about the current page.
Get a list of Mobile Platform Applications
1const { admin } = await authenticate.admin(request);23const response = await admin.graphql(4 `#graphql5 query MobilePlatformApplicationQuery {6 mobilePlatformApplications(first: 10) {7 edges {8 node {9 ... on AndroidApplication {10 id11 applicationId12 sha256CertFingerprints13 appLinksEnabled14 __typename15 }16 ... on AppleApplication {17 id18 appId19 universalLinksEnabled20 appClipApplicationId21 appClipsEnabled22 sharedWebCredentialsEnabled23 __typename24 }25 }26 }27 }28 }`,29);3031const data = await response.json();32
query MobilePlatformApplicationQuery {
mobilePlatformApplications(first: 10) {
edges {
node {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
sharedWebCredentialsEnabled
__typename
}
}
}
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2024-07/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "query MobilePlatformApplicationQuery { mobilePlatformApplications(first: 10) { edges { node { ... on AndroidApplication { id applicationId sha256CertFingerprints appLinksEnabled __typename } ... on AppleApplication { id appId universalLinksEnabled appClipApplicationId appClipsEnabled sharedWebCredentialsEnabled __typename } } } } }"
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
query MobilePlatformApplicationQuery {
mobilePlatformApplications(first: 10) {
edges {
node {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
sharedWebCredentialsEnabled
__typename
}
}
}
}
}`,
);
const data = await response.json();
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: `query MobilePlatformApplicationQuery {
mobilePlatformApplications(first: 10) {
edges {
node {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
sharedWebCredentialsEnabled
__typename
}
}
}
}
}`,
});
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
query MobilePlatformApplicationQuery {
mobilePlatformApplications(first: 10) {
edges {
node {
... on AndroidApplication {
id
applicationId
sha256CertFingerprints
appLinksEnabled
__typename
}
... on AppleApplication {
id
appId
universalLinksEnabled
appClipApplicationId
appClipsEnabled
sharedWebCredentialsEnabled
__typename
}
}
}
}
}
QUERY
response = client.query(query: query)
Response
JSON1{2 "mobilePlatformApplications": {3 "edges": [4 {5 "node": {6 "id": "gid://shopify/MobilePlatformApplication/1066176067",7 "applicationId": "androidfake.org.domain.com",8 "sha256CertFingerprints": [9 "A1:B2:C3:D4"10 ],11 "appLinksEnabled": true,12 "__typename": "AndroidApplication"13 }14 },15 {16 "node": {17 "id": "gid://shopify/MobilePlatformApplication/1066176068",18 "appId": "applefake.org.domain.com",19 "universalLinksEnabled": true,20 "appClipApplicationId": "ios.shopify.io.Clip",21 "appClipsEnabled": true,22 "sharedWebCredentialsEnabled": true,23 "__typename": "AppleApplication"24 }25 }26 ]27 }28}