How can you install Python FDK Client and create an instance of ApplicationClient
?
The Python FDK client can be installed by running the pip command pip install fdk-client-python
. After successfully installing it, you import it into your application with the appropriate modules. For instance, ApplicationClient
and ApplicationConfig
can be imported like this:
from fdk-client-python.application.ApplicationClient import ApplicationClient
from fdk-client-python.application.ApplicationConfig import ApplicationConfig
You can then create a configuration object and use it to initialize an instance of ApplicationClient
:
config = ApplicationConfig({
"applicationID": "YOUR_APPLICATION_ID",
"applicationToken": "YOUR_APPLICATION_TOKEN",
"domain": "YOUR_DOMAIN"
})
applicationClient = ApplicationClient(config)
Keep in mind to replace YOUR_APPLICATION_ID
,YOUR_APPLICATION_TOKEN
and YOUR_DOMAIN
with your actual application details. Additionally, you can use the client to access various functions such as retrieving product details by a specific slug.
For more details, check out Python | Fynd Partners Help Center.