question

sagar.sanjeev avatar image
sagar.sanjeev asked

API Using Through Pycharm

Can Anyone Help Me How Can i Use the API Using My Python Code in Pycharm

api
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Francois Lasne avatar image
Francois Lasne answered

Hello , for sure have a look on the fusion fabric github there is a dedicated section for python handing both B2B and B2C use cases

https://github.com/fusionfabric/ffdc-sample-python

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

sagar.sanjeev avatar image
sagar.sanjeev answered

@francois.lasne Hey I Tried and Followed Instruction on Both but Getting Following Error

Step

  1. Point your browser to http://localhost:5000. Click Login. You are redirected to the FusionFabric.cloud Developer Portal Authorization Server.
  2. Click Login and use one of the following credentials to log into Finastra's Authorization Server:

is Not Coming


fin.jpg (203.9 KiB)
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Szymon Patacz avatar image
Szymon Patacz answered

Hello,

1. Check if you had set the environment variables: CLIENT_ID, CLIENT_SECRET, TOKEN_URL, AUTHORIZATION_URL, STRONG, REDIRECT_URI, BASE_URL, BASE_LOGIN. Submit your values in comment except CLIENT_ID and CLIENT_SECRET.

2. Are you trying to use Private Key Authentication or Authorization Code/Client Credentials? This is based on value of STRONG environmental variable.

3. Make sure you are using the right channel (B2B, B2E, B2C) for selected API, in python ffdc-authorization-code example called API is "Static Data for Trade Capture" which is B2E.

4. Submit full URL of your error - it contains error description.

Regards,

Szymon

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Mauricio Pinto Lopez avatar image
Mauricio Pinto Lopez answered

Hello @sagar.sanjeev, thank you for your interest in the FFDC samples.

Looking at the error you shared it looks like there is a problem with your credentials, if you are using the Secret Key Authentication, please follow the steps below:

1. Make sure your credentials for the Authorization Code grant type work: You can easily do this using postman, you will be redirected to the authorization site and then you will get your access token, more details here.

2. In the .env file, change the "strong" variable to "False" and input your credentials as described in the readme.md file

3. Use an incognito session

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.