# cURL example to get metered license informationcurl -v "http://<base url>/v2.0/conversion/license"\
-X GET \
-H "Accept: application/json"\
-H "Authorization: Bearer <jwt token>"
{"isLicensed":true}
Response
The response structure contains metered license information:
Name
Type
Comment
isLicensed
bool
True, if metered license is set and active, false when license switched to trial mode or not applied.
SDK examples
Our API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. However, manually writing client code can be difficult, error-prone and time-consuming. Therefore, we have provided and support API SDKs in many development languages in order to make it easier to integrate with us.
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-dotnet-samplesstringMyClientSecret="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudstringMyClientId="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudvarconfiguration=newConfiguration(MyClientId,MyClientSecret);// Create necessary API instancesvarapiInstance=newLicenseApi(configuration);varresponse=apiInstance.GetLicenseInfo();Console.WriteLine($"Is licensed: {response.IsLicensed}");
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java-samples
StringMyClientSecret="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
StringMyClientId="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
Configurationconfiguration=newConfiguration(MyClientId,MyClientSecret);// Create API instance
LicenseApiapiInstance=newLicenseApi(configuration);LicenseInforesponse=apiInstance.getLicenseInfo();System.out.println("Is licensed: "+response.getIsLicensed());
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-php-samples
useGroupDocs\Conversion\Model;useGroupDocs\Conversion\Model\Requests;$ClientId="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
$ClientSecret="";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
$configuration=newGroupDocs\Conversion\Configuration();$configuration->setAppSid($ClientId);$configuration->setAppKey($ClientSecret);$apiInstance=newGroupDocs\Conversion\LicenseApi($configuration);// Get info
$result=$apiInstance->getLicenseInfo();// Done
echo"Is licensed: ".$result->is_licensed();
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-node-samples
global.conversion_cloud=require("groupdocs-conversion-cloud");global.clientId="XXXX-XXXX-XXXX-XXXX";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
global.clientSecret="XXXXXXXXXXXXXXXX";// Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
global.licenseApi=conversion_cloud.LicenseApi.fromKeys(clientId,clientSecret);letresponse=awaitlicenseApi.getLicenseInfo();console.log("isLicensed = "+response.isLicensed);
# For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-python-samplesimportgroupdocs_conversion_cloudclient_id="XXXX-XXXX-XXXX-XXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloudclient_secret="XXXXXXXXXXXXXXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud# Create necessary API instancesapiInstance=groupdocs_conversion_cloud.LicenseApi.from_keys(Common.client_id,Common.client_secret)# Get inforesult=apiInstance.get_license_info()print("isLicensed: "+result.isLicensed)
# For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-ruby-samplesrequire'groupdocs_conversion_cloud'$client_id="XXXX-XXXX-XXXX-XXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud$client_secret="XXXXXXXXXXXXXXXX"# Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud# Create necessary API instancesapiInstance=GroupDocsConversionCloud::LicenseApi.from_keys($client_id,$client_secret)# Get inforesult=apiInstance.get_license_info()puts("isLicensed: "+result.isLicensed)
// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples
packageinfoimport("fmt""github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-go-samples/config")funcGetLicenseInfo(){response,_,err:=config.Client.LicenseApi.GetLicenseInfo(config.Ctx)iferr!=nil{fmt.Printf("GetLicenseInfo error: %v\n",err)return}fmt.Printf("IsLicensed: %v\n",response.IsLicensed)}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.