Get List of Projects Online Introduction
This example explains how to get online projects list by providing Token or Login and Password credentials using Aspose.Tasks Cloud API in your applications. You can use our REST API with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more.
API
Type
Description
Resource Link
/tasks/projectOnline/projectList
GET
Gets the list of published projects in the current Project Online account
GetProjectList
cURL Example
Case 1: Get list of projects online using login and password credentials
Request
curl - X GET "https://api.aspose.cloud/v3.0/tasks/projectOnline/projectList?siteUrl=http%3A%2F%2Fproject_server_instance.local%2Fsites%2Fpwa&userName=SomeLogin" - H "accept: application/json" - H "x-sharepoint-password: SomePassword" - H "x-aspose-client: Containerize.Swagger"
Response
{
"code" : 0 ,
"status" : "string" ,
"projects" : {
"link" : {
"href" : "string" ,
"rel" : "string" ,
"type" : "string" ,
"title" : "string"
},
"projectInfo" : [
{
"id" : "string" ,
"name" : "string" ,
"createdDate" : "2020-06-27T16:22:17.414Z" ,
"isCheckedOut" : true ,
"lastPublishedDate" : "2020-06-27T16:22:17.414Z" ,
"lastSavedDate" : "2020-06-27T16:22:17.414Z" ,
"description" : "string"
}
]
}
}
Case 2: Get list of projects online using token credentials
Request
curl - X GET "https://api.aspose.cloud/v3.0/tasks/projectOnline/projectList?siteUrl=http%3A%2F%2Fproject_server_instance.local%2Fsites%2Fpwa" - H "accept: application/json" - H "x-project-online-token: SOMESECRETTOKEN" - H "x-aspose-client: Containerize.Swagger"
Response
{
"code" : 0 ,
"status" : "string" ,
"projects" : {
"link" : {
"href" : "string" ,
"rel" : "string" ,
"type" : "string" ,
"title" : "string"
},
"projectInfo" : [
{
"id" : "string" ,
"name" : "string" ,
"createdDate" : "2020-06-27T16:22:17.414Z" ,
"isCheckedOut" : true ,
"lastPublishedDate" : "2020-06-27T16:22:17.414Z" ,
"lastSavedDate" : "2020-06-27T16:22:17.414Z" ,
"description" : "string"
}
]
}
}
SDKs
The Aspose.Tasks Cloud SDKs can be downloaded from the following page: Available SDKs
SDK Examples
Case 1: Import project online using login and password credentials
Case 2: Import project online using token credentials