> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.megamation.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.megamation.com/_mcp/server.

# Get Calendar Event

GET https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent

Get a list of bookings for an asset between two spicific dates. You have to provide the `resource_id` as in your system. The dates in the request must match the date format used in your system database.

Reference: https://apidocs.megamation.com/api/room-event-scheduler-booking/get-room-event-scheduler-booking-get-calendar-event

## Authentication

- `Authorization` header (basic auth, required) — Basic authentication of the form `Basic <base64(username:password)>`.
- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `resource_id` (string, optional)
- `first_day` (string, optional)
- `last_day` (string, optional)

## Response

### 200

OK

## Examples

**Response**

```json
{
  "_embedded": {
    "Booking": [
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_booking/calendarevent/1001155"
          }
        },
        "building_address": "Eastway Dr, ,Eugene, OR 97405, ,United States",
        "description": "",
        "end_date": "2024-06-12",
        "end_time": "08:00",
        "r_day_days": "",
        "r_frequency": "",
        "r_month_day": "",
        "r_week_days": "",
        "r_week_recur": "",
        "recurring_flag": "Yes",
        "reservation_id": "1001155",
        "reservation_status": "REQUESTED",
        "resource_description": "Conference Room 115",
        "resource_id": "BD11*NA*115",
        "rs_user_id": "10002",
        "start_date": "2024-06-12",
        "start_time": "07:00",
        "title": "Hello Darkness my old friend"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_booking/calendarevent/1001154"
          }
        },
        "building_address": "Eastway Dr, ,Eugene, OR 97405, ,United States",
        "description": "",
        "end_date": "2024-05-12",
        "end_time": "08:00",
        "r_day_days": "",
        "r_frequency": "",
        "r_month_day": "",
        "r_week_days": "",
        "r_week_recur": "",
        "recurring_flag": "Yes",
        "reservation_id": "1001154",
        "reservation_status": "REQUESTED",
        "resource_description": "Conference Room 115",
        "resource_id": "BD11*NA*115",
        "rs_user_id": "10002",
        "start_date": "2024-05-12",
        "start_time": "07:00",
        "title": "Hello Darkness my old friend"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_booking/calendarevent/1001173"
          }
        },
        "building_address": "Eastway Dr, ,Eugene, OR 97405, ,United States",
        "description": "Quarterly Shareholders meetup.",
        "end_date": "2024-05-08",
        "end_time": "15:00",
        "r_day_days": "",
        "r_frequency": "",
        "r_month_day": "",
        "r_week_days": "",
        "r_week_recur": "",
        "recurring_flag": "No",
        "reservation_id": "1001173",
        "reservation_status": "REQUESTED",
        "resource_description": "Conference Room 115",
        "resource_id": "BD11*NA*115",
        "rs_user_id": "10002",
        "start_date": "2024-05-08",
        "start_time": "13:00",
        "title": "Shareholders meetup"
      },
      {
        "_links": {
          "self": {
            "href": "https://api.megamation.com/dev2022/dl/rs_booking/calendarevent/1001174"
          }
        },
        "building_address": "Eastway Dr, ,Eugene, OR 97405, ,United States",
        "description": "Quarterly Shareholders meetup.",
        "end_date": "2024-05-08",
        "end_time": "17:00",
        "r_day_days": "",
        "r_frequency": "",
        "r_month_day": "",
        "r_week_days": "",
        "r_week_recur": "",
        "recurring_flag": "No",
        "reservation_id": "1001174",
        "reservation_status": "CANCELLED",
        "resource_description": "Conference Room 115",
        "resource_id": "BD11*NA*115",
        "rs_user_id": "10002",
        "start_date": "2024-05-08",
        "start_time": "16:00",
        "title": "Shareholders meetup"
      }
    ]
  },
  "_links": {
    "apiEntryPoint": {
      "href": "https://api.megamation.com/dev2022/dl/rs_booking"
    },
    "self": {
      "href": "https://api.megamation.com/dev2022/dl/rs_booking/calendarevent?resource_id=BD11*NA*115&first_day=2024-04-28&last_day=2024-06-28"
    }
  },
  "cursor": "",
  "has_more": "False",
  "next_page": "",
  "progress": "4/4"
}
```

**SDK Code**

```python
import requests

url = "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent"

querystring = {"first_day":"2024-04-28","last_day":"2024-06-28","resource_id":"BD11*NA*115"}

response = requests.get(url, params=querystring, auth=("<username>", "<password>"))

print(response.json())
```

```javascript
const url = 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115';
const credentials = btoa("<username>:<password>");

const options = {method: 'GET', headers: {Authorization: `Basic ${credentials}`}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115"

	req, _ := http.NewRequest("GET", url, nil)

	req.SetBasicAuth("<username>", "<password>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request.basic_auth("<username>", "<password>")

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115")
  .basicAuth("<username>", "<password>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115', [
  'headers' => [
  ],
    'auth' => ['<username>', '<password>'],
]);

echo $response->getBody();
```

```csharp
using RestSharp;
using RestSharp.Authenticators;

var client = new RestClient("https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115");
client.Authenticator = new HttpBasicAuthenticator("<username>", "<password>");
var request = new RestRequest(Method.GET);

IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let credentials = Data("<username>:<password>".utf8).base64EncodedString()

let headers = ["Authorization": "Basic \(credentials)"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.megamation.com/CLIENT_ID/DATABASE_ID/rs_booking/calendarevent?first_day=2024-04-28&last_day=2024-06-28&resource_id=BD11*NA*115")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```