본문 바로가기 보조메뉴바로가기 대메뉴 바로가기

바로가기

상담문의

주요 Open API 서비스

페이스북 트위터
카카오스토리
프린트

주요 Open API 서비스

  • 50+ 부산포털 오픈 API에서 제공하는 장노년센터 소식지 저널 정보를 받을 수 있습니다.

    요청 정보

    요청 정보
    URL https://www.busan50plus.or.kr/openAPI/api/community
    요청 방식 POST
    Charset UTF-8
    사용예제

    기본검색(필수 입력 예) $url = "https://www.busan50plus.or.kr/openAPI/api/community";
    $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가 아닙니다.

    요청 parameter

    이 표는 좌, 우로 스크롤이 가능합니다.

    요청 parameter
    항목 타입 필수여부 설명
    userid String Y 신청한 회원 아이디를 입력합니다.
    auth_key String Y 발급받은 인증키를 입력합니다.
    return_type String   "xml" 또는 "json"을 입력합니다. (기본값은 json)

    출력결과

    이 표는 좌, 우로 스크롤이 가능합니다.

    출력결과
    항목 타입 설명
    <result>
    <result_code> Number 요청 결과 코드 요청결과코드 보기 </result_code>
    <result_count> Number 총 검색결과 건 수 </result_count>
    <data>
    <item0> 결과항목 / item0, item1, ...
    <subject> String 제목 </subject>
    <reg_date> String 등록일 </reg_date>
    <download_url> String 저널 pdf 파일 다운 링크 </download_url>
    </item0>
    </data>
    </result>
신청하기