Test Integration
Test your Curlec OAuth integration by creating test application and authorising it.
You can test the full Curlec OAuth flow by creating a sample application to obtain access to the sub-merchant's data securely. Below are the steps to grant access to your application for your account:
- .
- .
To create the test application:
-
On your
, click Partner. -
Click Applications to open the Applications tab. This tab displays a list of created applications.
-
Click Create Application and provide these details:
-
Enter the Name of your application. For example, "Acme Corp". This would appear on Curlec's authorisation page.
-
Enter the Website URL of the application.
-
Click Upload App Icon to upload the app's logo. Curlec displays this icon to your users on the Curlec Connect screens. It is also displayed in the Connected Applications list.
Handy Tips
Upload only square images as the App Icon.
-
Click Save.
- Curlec creates an application that appears on the list of created applications. The Edit Application page shows the application settings for both Development and Production clients.
- Client ID and Client Secret are predefined for both Development and Production clients. Use them to make request calls to Curlec servers.
-
-
Enter the Redirect URIs in comma-separated format.
Handy Tips
For production clients, only URLs with
https
are supported. For example,https://acmecorp.com
. -
Click Save.
Follow these steps:
-
Click Preview OAuth Page. Curlec redirects you to the authorisation page, where you can authorise or decline access to your test application for your account.
Handy Tips
For development clients, we support
https://localhost
as aredirect_uri
on Preview. However, you can replace it with any valid URLs specified in the Development client settings and reload the page. -
Click Authorize. Curlec redirects you to the
redirect_uri
sent in the request URL, along with the auth code. -
Copy the auth
.code
from the URL and use it to obtain the newHandy Tips
While making the API request, pass
mode=test
. This will fetch you an access token for the test mode. Although the default is Live mode, testing with a live token would not help much unless your account is activated.For both production and development clients, you can control the accessibility of the application using the
scope
parameter. Aread_write
(scope=read_write
) access would grant edit access to the application, whileread_only
(scope=read_only
) would allow only view access.
Your test application appears on the Created Applications list on the sub-merchant's Dashboard.
Is this integration guide useful?