Migrating from Shopify Private App to Shopify Customer App - shopify

I have a few questions regarding ShopifySharp package and Shopify Custom App and Private App.
It has a warning that says:
Some of your private apps and/or admin webhook subscriptions may not work as expected because they are using deprecated API versions.
It also has say, private apps need to be updated before January 1, 2023.
To give you an idea, we created an application in C# built using ShopifySharp. It has been working for years already. It has API Key, password, and domain to connect to, to get the essential data from. It's understandable. Now here comes the confusion. I created a new app in Shopify by clicking "Create an app" in the Settings, putting the name, etc. So, it now says it's a Custom App below the app name.
It made me confused because I don't know if I'm going to replace the old Private App with the new Custom App and use its credentials.
I also don't know if those credentials I am seeing is what I am going to put in my C# application, like the API key and secret key. I don't even know the use of "Admin API access token". I am new this Shopify thingy by the way but I have been developing and updating the C# app but I was just concern on the API key and password in the Private App.
I am also seeing Webhooks subscription default to "2022-10" but I don't know what to do with it.
I already asked the ShopifySharp maintainer but I am not satisfied with the answer. All I have to do it to change the https://myshop.myshopify.com/admin/api/2020-07 to https://myshop.myshopify.com/admin/api/2022-04? Is that all?

Related

Shopify Public App - How To Get Key, Token & Url

I am totally new to Shopify Public App development and I will need your help to understand it a bit better.
For a client, I need to build a Shopify Public App that will be used by several Merchants.
This application will have to access the Merchants' store via the Admin API.
If my understanding is correct, in order to access one specific Merchant's store via the Admin API, I need to have 3 pieces of information from that Merchant's store: the Public API Key, Token and URL.
Now, my question:
When the Shopify Public App is installed by a Merchant, how does my app get these 3 pieces of information (specific to that particular merchant) ?
Is there any "magic" trick? Does the Merchant need to input this info? ...
In advance, many thanks for your help
Each merchant will need to install your app. In the installation phase shopify will pass, as an argument, the access token, that is a token that you will need, to use the Admin API.
If we're talking about an embedded app is expected that every request made is authenticated.
Depending on which kind of app you want to create (embedded or not) and language you may want to use, using the Shopify Cli to create the first draft of the app is really reccommended. It will create the base to have an installable app. Here is the documentation https://shopify.dev/apps/getting-started/create
You need to install the Shopify Cli and then run
shopify app create (node | ruby | php)
depending on your language of choice.
For those who might be interested, I finally found the link to the information.
Shopify - Getting started with OAuth

Add permission in the app in RingCentral production

We are working in RingCentral application and APIs with SMS and fax permissions.
The application recently moved to production from Sandbox environment.
We have now a requirement to add 2 additional permission ReadAccount, ReadContact in the app which was not added during sandbox testing.
How can we do that? I don't see any option to modify the app. Is there any way we can modify the existing app?
As per I know once your app is in production, you cannot change anything.
You need to ask devsupport#ringcentral.com for any help. Once they added the permission with your request (not sure if they do.. most probably they don't) you need to test again for that permission you acquired.
The official recommendation is to create a new app, add proper permissions and graduate it. So in that case you need to go through again.
As per the reference here
"You can clone the app, give it a new name or add a version to the new app name. Add the missing permissions and run test in the sandbox the same way as you did for the first app. Graduate your app and finally replace the client Id and secrete to use the new app. You can suspend the old app after that."
Similar question here: https://forums.developers.ringcentral.com/questions/1059/how-to-add-permissions-of-read-call-log-in-product.html

how to create a public app that can be integrated inside shopify's stores admin?

This is a general question I know. I read the documentation and I'm completely lost. I know how OAuth works and I know how to do basic access to the API. But my question is:
How to create a public app that users can install? How can the app be integrated with store's panel dashboard? Initially, I don't want my apps to listed, do I have to host my own app?
There are two kinds of Shopify apps: public and private apps. Public apps are listed in Shopify's App Store, where it's only place store owners can install apps. Private apps are built for specific stores so they aren't necessary listed anywhere.
You do need to host your apps, your apps are basically web applications.
Shopify provides an Embedded App SDK which you can use to integrate your app smoothly inside store owners' Admin panel. If you also use Shopify Polaris to build front-end with ReactJS then your apps' user interface is exactly same as Shopify's
I have created a sample Shopify app with NodeJS - hello-shopify - it's easy to start if you are familiar with NodeJS.

Can't find password for Shopify App

I'm trying to access Shopify Admin APIs through postman.
Tutorial says that
For Username and Password provide your store private API key and password respectively.
I do have the API key, however there is no password filed on my admin page? I tried finding some solutions online, however the screenshots mentioned in those solutions did contain a password filed on the admin page. My page does not have it. I only have API key & API secret key
There are two types of App in shopify, one is embeddedSDK and second one is private App. For the embeddedSDK you can you Postman, but for the private Its will not access through postman.
Thanks
There could be one of following reasons of not having password.
- You are logged in with diff. user or Not having admin access to app.
Your Store Password & Username may work in place.
- Make sure your app is in published state.
share more details in case still hanged with these buggy things.
From Using Postman - Shopify tutorial:
Once you have a Shopify store, you can quickly generate your API credentials using a private app.
You need to create a private app from your development or managed store - not in your partner account.
Click the link at the bottom of the apps page:
Working with a developer on your shop? Manage private apps
From there you can create a new private app to get your API key and password.

Access Shopify API from an External App

I am trying to access the Shopify API from an external app that I am building (mobile). For example, I would like to access this API:
https://mystore.myshopify.com/admin/products.json
Of course I would need to authenticate my request first. So far everybody I asked (including Shopify support), suggested that the only way to access the data is through a Shopify App.
Can you suggest a way to do this?
I have found the answer. Follow these steps if you want to access the Shopify API from an external app:
Login to your store as an admin
Go to Apps
Create a Private App
Use the following pattern with every URL you create (I am using this to get all the orders)
https://:#.myshopify.com/admin/orders.json
The API Key and the password appear in your private app info page.