# getEventSourceById (method)

> 지정한 ID에 해당하는 `eventSource` 정보를 반환합니다.

### Syntax

    object getEventSourceById( id );

### Parameters

Name | Type | Required | Description
--- | --- | --- | ---
id | `string` | 필수 | eventSource의 ID

### Return Value

EventSourceApi object : 이벤트 소스(EventSource) 객체

### Example

    var getEventSource = IBCalendar.get("calendar1").getEventSourceById("eventSource1");
    console.log(getEventSource.id); //"eventSource1"

### Since

product | version | desc
--- | --- | ---
core | 1.5.0.0 | 기능 추가