All URIs are relative to https://uclapi.com
Method | HTTP request | Description |
---|---|---|
libcalSpaceBookingsGet | GET /libcal/space/bookings | Get all LibCal bookings |
libcalSpaceCancelPost | POST /libcal/space/cancel | Cancel one or more LibCal bookings |
libcalSpaceCategoriesGet | GET /libcal/space/categories | Returns the categories of spaces available in the given location(s) |
libcalSpaceCategoryGet | GET /libcal/space/category | Get all spaces corresponding to the specified categories |
libcalSpaceFormGet | GET /libcal/space/form | Get all forms (including fields) corresponding to the given LibCal form ID(s) |
libcalSpaceItemGet | GET /libcal/space/item | Get the spaces corresponding to the given LibCal space ID(s) |
libcalSpaceLocationsGet | GET /libcal/space/locations | Gets all LibCal locations |
libcalSpaceNicknameGet | GET /libcal/space/nickname | Get the nicknames asssigned to certain LibCal bookings |
libcalSpacePersonalBookingsGet | GET /libcal/space/personal_bookings | Get all LibCal bookings |
libcalSpaceQuestionGet | GET /libcal/space/question | Get the questions corresponding to the given LibCal field/question ID(s) |
libcalSpaceReservePost | POST /libcal/space/reserve | Reserve one or more LibCal spaces/seats |
libcalSpaceSeatGet | GET /libcal/space/seat | Get LibCal seat by ID |
libcalSpaceSeatsGet | GET /libcal/space/seats | Get all LibCal seats in a given location |
libcalSpaceUtilizationGet | GET /libcal/space/utilization | Get utilisation stats for a particular location |
libcalSpaceZoneGet | GET /libcal/space/zone | Get LibCal zone by ID |
libcalSpaceZonesGet | GET /libcal/space/zones | Get LibCal zones by location |
InlineResponse20039 libcalSpaceBookingsGet(opts)
Get all LibCal bookings
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let opts = {
'eid': 469,470, // String | Comma delimited list of LibCal space IDs. If specified, will only show bookings for those spaces.
'seatId': 54435,54436, // String | Comma delimited list of LibCal seat IDs. If specified, will only show bookings for those seats.
'cid': 3334, // String | Comma delimited list of LibCal category IDs. If specified, will only show bookings for those categories.
'lid': 702,703, // String | Comma delimited list of LibCal location IDs. If specified, will only show bookings for those locations.
'_date': 2021-06-01, // String | Date in YYYY-MM-DD format. If specified, will only show bookings made on this date. Dates in the past are ignored. Defaults to today's date.
'days': 3, // Number | Number of days into the future to retrieve bookings from, starting from the data parameter. Defaults to zero. Must be >= 0 and <= 365.
'limit': 10 // Number | Maximum number of bookings to return. Defaults to 20. The maximum value is 500.
};
apiInstance.libcalSpaceBookingsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
eid | String | Comma delimited list of LibCal space IDs. If specified, will only show bookings for those spaces. | [optional] |
seatId | String | Comma delimited list of LibCal seat IDs. If specified, will only show bookings for those seats. | [optional] |
cid | String | Comma delimited list of LibCal category IDs. If specified, will only show bookings for those categories. | [optional] |
lid | String | Comma delimited list of LibCal location IDs. If specified, will only show bookings for those locations. | [optional] |
_date | String | Date in YYYY-MM-DD format. If specified, will only show bookings made on this date. Dates in the past are ignored. Defaults to today's date. | [optional] |
days | Number | Number of days into the future to retrieve bookings from, starting from the data parameter. Defaults to zero. Must be >= 0 and <= 365. | [optional] |
limit | Number | Maximum number of bookings to return. Defaults to 20. The maximum value is 500. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20042 libcalSpaceCancelPost(id)
Cancel one or more LibCal bookings
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let id = cs_loYG4wTz,ab_P1bn30Mn; // String | A comma delimited list of LibCal booking IDs to cancel
apiInstance.libcalSpaceCancelPost(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | A comma delimited list of LibCal booking IDs to cancel |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20028 libcalSpaceCategoriesGet(ids)
Returns the categories of spaces available in the given location(s)
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 702,703; // String | Comma delimited list of LibCal location IDs
apiInstance.libcalSpaceCategoriesGet(ids, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal location IDs |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20029 libcalSpaceCategoryGet(ids, opts)
Get all spaces corresponding to the specified categories
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 3334,3335; // String | Comma delimited list of LibCal category IDs
let opts = {
'details': 1, // Number | Flag to indicate you want additional details such as terms and conditions.
'availability': 2021-01-05 // String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format.
};
apiInstance.libcalSpaceCategoryGet(ids, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal category IDs | |
details | Number | Flag to indicate you want additional details such as terms and conditions. | [optional] |
availability | String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20030 libcalSpaceFormGet(ids)
Get all forms (including fields) corresponding to the given LibCal form ID(s)
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 38,62; // String | Comma delimited list of LibCal form IDs
apiInstance.libcalSpaceFormGet(ids, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal form IDs |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20032 libcalSpaceItemGet(ids, opts)
Get the spaces corresponding to the given LibCal space ID(s)
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 469,470; // String | Comma delimited list of LibCal space IDs
let opts = {
'availability': 2021-01-05 // String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format.
};
apiInstance.libcalSpaceItemGet(ids, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal space IDs | |
availability | String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20027 libcalSpaceLocationsGet(opts)
Gets all LibCal locations
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let opts = {
'details': 1 // Number | Flag to indicate you want additional details such as terms and conditions.
};
apiInstance.libcalSpaceLocationsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
details | Number | Flag to indicate you want additional details such as terms and conditions. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20033 libcalSpaceNicknameGet(ids, opts)
Get the nicknames asssigned to certain LibCal bookings
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 3334,3335; // String | Comma delimited list of LibCal category IDs
let opts = {
'availability': 2021-01-05 // String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format.
};
apiInstance.libcalSpaceNicknameGet(ids, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal category IDs | |
availability | String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20040 libcalSpacePersonalBookingsGet(clientSecret, opts)
Get all LibCal bookings
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let clientSecret = "clientSecret_example"; // String | Client secret of the authenticating app.
let opts = {
'eid': 469,470, // String | Comma delimited list of LibCal space IDs. If specified, will only show bookings for those spaces.
'seatId': 54435,54436, // String | Comma delimited list of LibCal seat IDs. If specified, will only show bookings for those seats.
'cid': 3334, // String | Comma delimited list of LibCal category IDs. If specified, will only show bookings for those categories.
'lid': 702,703, // String | Comma delimited list of LibCal location IDs. If specified, will only show bookings for those locations.
'email': isd_apiteam@ucl.ac.uk, // String | If specified, will only show bookings made with this email address
'_date': 2021-06-01, // String | Date in YYYY-MM-DD format. If specified, will only show bookings made on this date. Dates in the past are ignored. Defaults to today's date.
'days': 3, // Number | Number of days into the future to retrieve bookings from, starting from the data parameter. Defaults to zero. Must be >= 0 and <= 365.
'limit': 10, // Number | Maximum number of bookings to return. Defaults to 20. The maximum value is 500.
'formAnswers': true // Boolean | Whether or not form answers should be returned. Defaults to false.
};
apiInstance.libcalSpacePersonalBookingsGet(clientSecret, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
clientSecret | String | Client secret of the authenticating app. | |
eid | String | Comma delimited list of LibCal space IDs. If specified, will only show bookings for those spaces. | [optional] |
seatId | String | Comma delimited list of LibCal seat IDs. If specified, will only show bookings for those seats. | [optional] |
cid | String | Comma delimited list of LibCal category IDs. If specified, will only show bookings for those categories. | [optional] |
lid | String | Comma delimited list of LibCal location IDs. If specified, will only show bookings for those locations. | [optional] |
String | If specified, will only show bookings made with this email address | [optional] | |
_date | String | Date in YYYY-MM-DD format. If specified, will only show bookings made on this date. Dates in the past are ignored. Defaults to today's date. | [optional] |
days | Number | Number of days into the future to retrieve bookings from, starting from the data parameter. Defaults to zero. Must be >= 0 and <= 365. | [optional] |
limit | Number | Maximum number of bookings to return. Defaults to 20. The maximum value is 500. | [optional] |
formAnswers | Boolean | Whether or not form answers should be returned. Defaults to false. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20031 libcalSpaceQuestionGet(ids)
Get the questions corresponding to the given LibCal field/question ID(s)
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 43,8; // String | Comma delimited list of LibCal field/question IDs
apiInstance.libcalSpaceQuestionGet(ids, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal field/question IDs |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20041 libcalSpaceReservePost(libcalReserveRequest)
Reserve one or more LibCal spaces/seats
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let libcalReserveRequest = new uclapi.LibcalReserveRequest(); // LibcalReserveRequest |
apiInstance.libcalSpaceReservePost(libcalReserveRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
libcalReserveRequest | LibcalReserveRequest |
- Content-Type: application/json
- Accept: application/json
InlineResponse20036 libcalSpaceSeatGet(ids, opts)
Get LibCal seat by ID
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 3334,3335; // String | Comma delimited list of LibCal category IDs
let opts = {
'availability': 2021-01-05 // String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format.
};
apiInstance.libcalSpaceSeatGet(ids, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | Comma delimited list of LibCal category IDs | |
availability | String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20035 libcalSpaceSeatsGet(ids, opts)
Get all LibCal seats in a given location
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 702; // String | A single LibCal location ID
let opts = {
'spaceId': 1791, // String | If specified, only return data for this space
'categoryId': 3334, // String | If specified, will only return data for that category
'seatId': 54435, // String | Show only the seat with this ID. If this is specified, spaceId, categoryId, and zoneId will be ignored.
'accessibleOnly': false, // Boolean | Return only acessible seats (i.e. seats with height-adjustable furniture).
'availability': 2021-01-05, // String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format.
'pageIndex': 0, // Number | For pagination purposes, this specifies the page to be retrieved. Starts at 0 for the first page.
'pageSize': 10 // Number | For pagination purposes, this specifies the number of results per page. Must be >= 1 and <= 100. The default is 20.
};
apiInstance.libcalSpaceSeatsGet(ids, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | A single LibCal location ID | |
spaceId | String | If specified, only return data for this space | [optional] |
categoryId | String | If specified, will only return data for that category | [optional] |
seatId | String | Show only the seat with this ID. If this is specified, spaceId, categoryId, and zoneId will be ignored. | [optional] |
accessibleOnly | Boolean | Return only acessible seats (i.e. seats with height-adjustable furniture). | [optional] |
availability | String | Either a single date or a comma delimited list of 2 dates (a start and end date). The keyword 'next' (alone) can also be used to return availability for the next date that this item is available. Setting this parameter also sets the details value to 1. Dates should be in YYYY-MM-DD format. | [optional] |
pageIndex | Number | For pagination purposes, this specifies the page to be retrieved. Starts at 0 for the first page. | [optional] |
pageSize | Number | For pagination purposes, this specifies the number of results per page. Must be >= 1 and <= 100. The default is 20. | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20034 libcalSpaceUtilizationGet(ids, opts)
Get utilisation stats for a particular location
Optionally filter by categoryId and zoneId
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 702; // String | A single LibCal location ID
let opts = {
'categoryId': 3334, // String | If specified, will only return data for that category
'zoneId': 87 // String | If specified, will only return data for that zone
};
apiInstance.libcalSpaceUtilizationGet(ids, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | A single LibCal location ID | |
categoryId | String | If specified, will only return data for that category | [optional] |
zoneId | String | If specified, will only return data for that zone | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20038 libcalSpaceZoneGet(opts)
Get LibCal zone by ID
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let opts = {
'zoneId': 87 // String | If specified, will only return data for that zone
};
apiInstance.libcalSpaceZoneGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
zoneId | String | If specified, will only return data for that zone | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20037 libcalSpaceZonesGet(ids)
Get LibCal zones by location
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure API key authorization: ApiToken
let ApiToken = defaultClient.authentications['ApiToken'];
ApiToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.LibCalApi();
let ids = 702; // String | A single LibCal location ID
apiInstance.libcalSpaceZonesGet(ids, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
ids | String | A single LibCal location ID |
- Content-Type: Not defined
- Accept: application/json