how to request res api in shopify app

how to request res api in shopify app

sabarinathan
Shopify Partner
2 0 1

i am working on  remix app, i want to get list of all articles, remix have blog id or author name to get blog, but i want  to get all blog in one request, 

i found this URL: articles   i hit the request i  get this response

 

 

<Html>
<body>
    <div id="redirect" data-url="https://admin.shopify.com/login?errorHint=no_identity_session"></div>
    <script>window.location =
            decodeURI(document.getElementById('redirect').dataset.url);</script>
</body>
</Html>

 

 

show i update  scopes but not update  in 

 

scopes = "read_content,read_files,read_products,write_content,write_files,write_products"
export const loader = async ({ request, context }: LoaderFunctionArgs) => {
  const { admin, session, sessionToken } = await authenticate.admin(request);

  console.log({
    session,
  });

  return null;
};

resposne --->  {
  session: Session {
     id: 'store.myshopify.com',
     shop: 'store.myshopify.com',
     state: ''",
     isOnline: false,
     scope: 'write_content,write_files,write_products',
     expires: undefined,
     accessToken: ''accessToken",
     onlineAccessInfo: undefined
   }
}

 

 

have any alternative way to get all articles post


thank you 🙂
 

Replies 0 (0)