# SwiftShiftApi.CalendarApi

All URIs are relative to *http://localhost:3000*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getCalendar**](CalendarApi.md#getCalendar) | **GET** /caregivers/{caregiver_id}/calendar | user&#39;s calendar


<a name="getCalendar"></a>
# **getCalendar**
> InlineResponse2009 getCalendar(caregiverId, opts)

user&#39;s calendar

calendar list for a user

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.CalendarApi();
let caregiverId = null; // String | id of a caregiver
let opts = {
  'from': 3.4, // Number | unix timestamp
  'take': 50, // Number | Page size.
  'skip': 0, // Number | The start index.
  'search': "search_example", // String | Search phrase.
  'state': 56, // Number | List of the properties to return.
  'q': "q_example" // String | resource query language
};
apiInstance.getCalendar(caregiverId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **caregiverId** | [**String**](.md)| id of a caregiver | 
 **from** | **Number**| unix timestamp | [optional] 
 **take** | **Number**| Page size. | [optional] [default to 50]
 **skip** | **Number**| The start index. | [optional] [default to 0]
 **search** | **String**| Search phrase. | [optional] 
 **state** | **Number**| List of the properties to return. | [optional] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2009**](InlineResponse2009.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

