Create Request Header
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=xxxx&client_secret=xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
Create cURL Request
curl -X GET "https://api.aspose.cloud/v3.0/pdf/4pages.pdf/pages/1" \
-H "accept: application/json" \
-H "authorization: Bearer <jwt token>"
{
"Page": {
"Id": 1,
"Images": {
"List": null,
"Links": [
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1/images",
"Rel": "self",
"Type": null,
"Title": null
}
]
},
"Rectangle": {
"X": 0,
"Y": 0,
"Width": 612,
"Height": 792
},
"Links": [
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "self",
"Type": null,
"Title": null
},
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "alternate",
"Type": "image/jpeg",
"Title": "Download As JPEG"
},
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "alternate",
"Type": "image/tiff",
"Title": "Download As TIFF"
},
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "alternate",
"Type": "image/png",
"Title": "Download As PNG"
},
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "alternate",
"Type": "image/gif",
"Title": "Download As GIF"
},
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "alternate",
"Type": "image/bmp",
"Title": "Download As Bmp"
},
{
"Href": "http://api.aspose.cloud/v3.0/pdf/sample-input.pdf/pages/1",
"Rel": "alternate",
"Type": "image/x-emf",
"Title": "Download As Emf"
}
]
},
"Code": 200,
"Status": "OK"
}