Establishing a Connection
The objects available within our connector are accessible from the "cdata.adobecommerce" module. To use the module's objects directly:
- Import the module as follows:
import cdata.adobecommerce as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("User=admin;Password=admin;Url=https://myadobecommercehost")
Connecting to AdobeCommerce
To connect, set the URL; for example, http://yoursitename/magento2, and optionally provide the StoreCode of the store you are connecting to, if more than one are present.
Authenticating to AdobeCommerce
To authenticate to AdobeCommerce server versions, you can use either the Basic or the Token AuthScheme.Basic
- AuthScheme Set this to Basic.
- User Set this to your user name in AdobeCommerce.
- Password Set this to your password in AdobeCommerce.
Access Token
- AuthScheme Set this to Token.
- AccessToken Set this to your AccessToken in AdobeCommerce.
To generate the AccessToken, Log in to the AdobeCommerce Stores > Settings > Configuration > Services > OAuth > Access Token.