50+ 부산포털 오픈 API에서 제공하는 교육신청 정보를 검색할 수 있습니다.
URL | https://www.busan50plus.or.kr/openAPI/api/education |
---|---|
요청 방식 | POST |
Charset | UTF-8 |
기본검색(필수 입력 예)
$url = "https://www.busan50plus.or.kr/openAPI/api/education";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_FAILONERROR,1);
curl_setopt($ch, CURLOPT_REFERER,$_SERVER['HTTP_HOST']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$fields = array(
"userid" => "test",
"auth_key" => "1234"
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
$response = curl_exec($ch);
curl_close($ch)
// json 리턴 시
$arr = json_decode($response);
var_dump($arr);
// xml 리턴 시
$xml = simplexml_load_string($response);
$json = json_encode($xml);
$arr = json_decode($json);
var_dump($arr);
교육종류코드 | 모집상태코드 | 요청결과코드 | |
---|---|---|---|
0 | 전체 | 전체 | 요청 성공 |
1 | 취업준비교육 | 모집예정 | 승인되지 않은 인증키입니다. |
2 | 직종교육 | 모집종료 | 잘못된 주소로 접근하였습니다. |
3 | 정보화교육 | 마감 | 잘못된 인증키입니다. |
4 | 위탁교육 | 모집중 | 해당 API에 신청한 ID가 아닙니다. |
5 | 생애설계교육 | ||
6 | 평생교육 | ||
7 | 제3섹터창업교육 |
이 표는 좌, 우로 스크롤이 가능합니다.
이 표는 좌, 우로 스크롤이 가능합니다.
항목 | 타입 | 설명 | |||||
---|---|---|---|---|---|---|---|
<result> | |||||||
<result_code> | Number | 요청 결과 코드 요청결과코드 보기 | </result_code> | ||||
<result_count> | Number | 총 검색결과 건 수 | </result_count> | ||||
<data> | |||||||
<item0> | 결과항목 / item0, item1, ... | ||||||
<kind> | String | 교육종류 | </kind> | ||||
<subject> | String | 교육제목 | </subject> | ||||
<content> | Html | 교육내용 | </content> | ||||
<req_period> | String | 모집기간 | </req_period> | ||||
<edu_period> | String | 교육기간 | </edu_period> | ||||
<total_num> | String | 정원 | </total_num> | ||||
<edu_org> | String | 교육기관 | </edu_org> | ||||
<edu_place> | String | 교육장소 | </edu_place> | ||||
<edu_time> | String | 교육시간 | </edu_time> | ||||
<edu_price> | String | 교육비 | </edu_price> | ||||
<mat_price> | String | 재료비 | </mat_price> | ||||
<terms> | String | 수강자격 | </terms> | ||||
<reason> | String | 교육목적 (2020.04 이전 자료만 해당) | </reason> | ||||
<teacher> | String | 교육강사 (2020.04 이전 자료만 해당) | </teacher> | ||||
<edu_url> | String | 참고 url (2020.04 이전 자료만 해당) | </edu_url> | ||||
<edu_season> | String | 교육회차 (2020.04 이후 자료만 해당) | </edu_season> | ||||
<post_img_name> | String | 포스터 이미지 파일명 (2020.04 이후 자료만 해당) | </post_img_name> | ||||
<post_img_url> | String | 포스터 이미지 파일 다운 링크 (2020.04 이후 자료만 해당) | </post_img_url> | ||||
<state> | String | 모집상태 | </state> | ||||
<file> | 첨부파일이 있을 경우에만 출력 | ||||||
<item0> | |||||||
<file_name> | String | 첨부파일 이름 | </file_name> | ||||
<download_url> | String | 첨부파일 다운 링크 | </download_url> | ||||
</item0> | |||||||
</file> | |||||||
<edu_detail_sch> | 상세 교육 일정 (2020.04 이후 자료만 해당) | ||||||
<item0> | |||||||
<edu_date> | String | 교육일정 | </edu_date> | ||||
<edu_place> | String | 교육 장소 | </edu_place> | ||||
<edu_teacher> | String | 교육 강사 | </edu_teacher> | ||||
<edu_cont> | String | 교육 내용 | </edu_cont> | ||||
<edu_pre> | String | 교육 준비물 | </edu_pre> | ||||
</item0> | |||||||
</edu_detail_sch> | |||||||
</item0> | |||||||
</data> | |||||||
</result> |