Add an NPM_TOKEN secret on GitHub. Get your secret key from the NPM dashboard.
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc| <?php | |
| /** | |
| * Copyright Magento 2012 | |
| * Example of products list retrieve using Customer account via Magento | |
| REST API. OAuth authorization is used | |
| */ | |
| $callbackUrl = "http://yourhost/oauth_customer.php"; | |
| $temporaryCredentialsRequestUrl = | |
| "http://magentohost/oauth/initiate?oauth_callback=" . | |
| urlencode($callbackUrl); |