To get the admin_api_key and admin_api_password used in this example: https://www.example-code.com/csharp/shopify_basic_authentication.asp
Login to shopify.com
Click on Apps
Click On the “Develop apps for your store” Button, located at the bottom of the page.
Click on your private app.
Your Admin API and password are shown:
Scroll Down and Check Permissions. Perhaps you need to add permissions.