{"id":978,"date":"2018-03-23T09:40:23","date_gmt":"2018-03-23T00:40:23","guid":{"rendered":"http:\/\/13.231.125.151\/?p=978"},"modified":"2026-03-17T16:36:10","modified_gmt":"2026-03-17T07:36:10","slug":"lms-13-02","status":"publish","type":"post","link":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/2018\/03\/23\/lms-13-02\/","title":{"rendered":"13-02.API\u9023\u643a(\u4e8b\u524d\u6e96\u5099)"},"content":{"rendered":"<h3>13-02-1.API\u9023\u643a\u3068\u306f<\/h3>\n<p>E-learningASP\u3067\u306f\u3001\u4ed6\u306eWEB\u30b7\u30b9\u30c6\u30e0\u3068\u9023\u643a\u3059\u308b\u305f\u3081\u306eAPI\u3092\u5b8c\u5099\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5b66\u7fd2\u7d50\u679c\u3084\u8b1b\u5ea7\u3078\u306e\u30ea\u30f3\u30af\u3092\u30dd\u30fc\u30bf\u30eb\u30b5\u30a4\u30c8\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\nAPI\u304b\u3089\u306fE-learningASP\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3042\u3089\u3086\u308b\u60c5\u5831\u3092\u4ed6\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u53d6\u5f97\u3067\u304d\u308b\u307b\u304b\u3001\u4f1a\u54e1\u767b\u9332\u7528\u306eAPI\u306a\u3069\u3082\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8c4a\u5bcc\u306aAPI\u306b\u3088\u308a\u3001\u4f1a\u54e1\u767b\u9332\uff5e\u53d7\u8b1b\u307e\u3067\u3092\u3059\u3079\u3066\u30aa\u30ea\u30b8\u30ca\u30eb\u30b5\u30a4\u30c8\u3068\u3057\u3066\u69cb\u7bc9\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1158\" src=\"https:\/\/v7-manual.e-learning-asp.com\/wp-content\/uploads\/2018\/03\/13-02-2.png\" alt=\"\" width=\"1072\" height=\"527\" \/><\/p>\n<p>API\u306e\u5229\u7528\u306b\u306f\u5f53\u793e\u88fd\u54c1\u306e\u5951\u7d04\u6642\u306bAPI\u5229\u7528\u304c\u53ef\u80fd\u306a\u30d7\u30e9\u30f3\u3067\u306e\u304a\u7533\u8fbc\u307f\u3068\u3001API\u5229\u7528\u306e\u8ffd\u52a0\u6599\u91d1\u306e\u3054\u5951\u7d04\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u6599\u91d1\u30d7\u30e9\u30f3\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u5f53\u793eHP\uff08<a href=\"http:\/\/e-learning.omiya-s.com\/price.php\">\u3053\u3061\u3089<\/a>\uff09\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>13-02-2.\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306e\u53d6\u5f97<\/h3>\n<p><span style=\"color: #0000ff; font-size: 80%;\">\u7ba1\u7406\u30b5\u30a4\u30c8\u30ed\u30b0\u30a4\u30f3\uff1e\u30b5\u30a4\u30c8TOP\uff08E-learning\uff09\uff1e\u30e1\u30cb\u30e5\u30fc\uff08\u57fa\u672c\u8a2d\u5b9a\uff09\uff1e<b>ASP<\/b><b>\u57fa\u672c\u60c5\u5831\u8a2d\u5b9a<\/b><\/span><\/p>\n<p>API\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3068\u547c\u3070\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002ASP\u57fa\u672c\u60c5\u5831\u8a2d\u5b9a\u306e\u300c\u6a5f\u80fd\u95a2\u9023\u300d\u306e\u30dc\u30c3\u30af\u30b9\u304b\u3089\u300cAPI\u300d\u304c\u300c\u5229\u7528\u3059\u308b\u300d\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u30c1\u30a7\u30c3\u30af\u304c\u306a\u3044\u5834\u5408\u3001API\u5229\u7528\u3067\u304d\u308b\u5951\u7d04\u30d7\u30e9\u30f3\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u305d\u306e\u969b\u306f\u5225\u9014\u55b6\u696d\u62c5\u5f53\u307e\u3067\u304a\u554f\u5408\u305b\u304f\u3060\u3055\u3044\u3002\uff09<br \/>\n\u53f3\u5074\u306e\u300cAPI\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u300d\u306e\u5185\u5bb9\u3092\u30e1\u30e2\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u306f\u5f8c\u304b\u3089\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7162\" src=\"https:\/\/v7-manual.e-learning-asp.com\/wp-content\/uploads\/2018\/03\/37de1483896c348c45da207181ca6deb.png\" alt=\"\" width=\"1220\" height=\"628\" \/><\/p>\n<h3>13-02-3.\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb(c_stream_api.php)\u306e\u53d6\u5f97\u30fb\u7de8\u96c6<\/h3>\n<p>API\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001API\u3092\u547c\u3073\u51fa\u3059\u5143\u306e\u30b5\u30fc\u30d0\u306b\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092API\u306e\u547c\u3073\u51fa\u3057\u5143\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089require\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb\u3092<a href=\"https:\/\/v7-manual.e-learning-asp.com\/wp-content\/uploads\/2018\/03\/c-stream_api_v3-1-1.zip\">\u3053\u3061\u3089<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001ZIP\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3066\u4e2d\u8eab\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044<\/p>\n<pre class=\"lang:php mark:2-4 decode:true\" title=\"c_stream_api\">\/\/ c-stream API\r\ndefine(\"CS_API_URL\", \"https:\/\/www.c-streaming.net\/v5\/c-stream-api\/\");\r\ndefine(\"CS_KAISHA_ID\", \"\");\/\/\u767b\u9332\u306e\u4f1a\u793eID\u3092\u5165\u308c\u308b\r\ndefine(\"CS_ACCESS_KEY\", \"\");\/\/API\u7528\u306eaccess_key\r\n\r\n\/\/ c_stream_api\u30af\u30e9\u30b9\u751f\u6210\r\nclass c_stream_api {<\/pre>\n<p>3\u884c\u76ee\u306eCS_KAISHA_ID\u306b\u4f1a\u793eID\u3092\u30014\u884c\u76ee\u306eCS_ACCESS_KEY\u306b\u3055\u304d\u307b\u3069\u53d6\u5f97\u3057\u305f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u5165\u529b\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4f1a\u793eID\u304c00000\u3001\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c12345678\u3060\u3063\u305f\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default mark:3-4 decode:true \" title=\"c-stream_api.php\">\/\/ c-stream API\r\ndefine(\"CS_API_URL\", \"https:\/\/www.c-streaming.net\/v5\/c-stream-api\/\");\r\ndefine(\"CS_KAISHA_ID\", \"00000\");\/\/\u767b\u9332\u306e\u4f1a\u793eID\u3092\u5165\u308c\u308b\r\ndefine(\"CS_ACCESS_KEY\", \"12345678\");\/\/API\u7528\u306eaccess_key\r\n\r\n\/\/ c_stream_api\u30af\u30e9\u30b9\u751f\u6210\r\nclass c_stream_api {<\/pre>\n<h3>13-02-4.\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb(c_stream_api.php)\u306e\u914d\u7f6e\u3001\u30b5\u30fc\u30d0\u8a2d\u5b9a<\/h3>\n<p>API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30fc\u30d0\u306eWeb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u306a\u304a\u3001API\u3092\u5229\u7528\u3059\u308b\u306b\u306fPHP5\u4ee5\u4e0a\u3001cURL\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u30b5\u30fc\u30d0\u74b0\u5883\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\uff08cURL\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u72b6\u6cc1\u306f\u3001\u300cphp -i | grep cURL\u300d\u3068\u3044\u3046\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\uff09<\/p>\n<h3>13-02-5.API\u306e\u547c\u3073\u51fa\u3057<\/h3>\n<p>API\u306e\u547c\u3073\u51fa\u3057\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u88c5\u4f8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044<\/p>\n<pre class=\"lang:default decode:true\" title=\"userlogin_check_api\u306e\u547c\u3073\u51fa\u3057\u4f8b\">require 'c-stream_api_v3.php'; \/\/\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u901a\u3059\r\n\r\n\/\/ \u30d1\u30e9\u30e1\u30fc\u30bf\u6e96\u5099\r\n$params = array(\r\n    'kaisha_id'     =&gt; '00000', \/\/ \u4f1a\u793eID\r\n    'access_key' =&gt; '12345678'\r\n);\r\ntry {\r\n    $cstream = new c_stream_api($params); \/\/API\u30af\u30e9\u30b9\u3092\u751f\u6210\r\n    $login_id = 'XXXXX';\r\n    $passwd = 'XXXXX';\r\n    $output = $cstream-&gt;call_el_userlogin_check_api('login_id' =&gt; $login_id , 'password' =&gt; $passwd); \/\/API\u306e\u547c\u3073\u51fa\u3057\r\n\r\n    if($output['exec_flg'] == 1){\r\n\t    \/\/\u6b63\u5e38\u7d42\u4e86\u6642\u306e\u51e6\u7406\r\n\t    echo $output['login_flg'];\r\n    }else{\r\n\t    \/\/\u30a8\u30e9\u30fc\u6642\u306e\u51e6\u7406\r\n\t    echo $output['error_type'].\" : \".$output['error_msg'];\r\n    }\r\n} catch (Exception $e) {\r\n    print_r($e);\r\n} \r\n<\/pre>\n<p>\uff11\u884c\u76ee\uff1a\u307e\u305a\u547c\u51fa\u7528\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u901a\u3057\u307e\u3059\u3002<br \/>\n4-9\u884c\u76ee\uff1a\u57fa\u672c\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5165\u529b\u3057\u3001c_stream_api\u30af\u30e9\u30b9\u3092\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n12\u884c\u76ee\uff1ael_userlogin_check_api\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u307e\u3059\u3002\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308bAPI\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066\u306f\u3001API\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\n14-20\u884c\u76ee\uff1a\u5b9f\u884c\u7d50\u679c\u3092\u3082\u3068\u306b\u6b63\u5e38\u51e6\u7406\u3068\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u5fc5\u305a\u30a8\u30e9\u30fc\u51e6\u7406\u3092\u5b9f\u88c5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>13-02-1.API\u9023\u643a\u3068\u306f E-learningASP\u3067\u306f\u3001\u4ed6\u306eWEB\u30b7\u30b9\u30c6\u30e0\u3068\u9023\u643a\u3059\u308b\u305f\u3081\u306eAPI\u3092\u5b8c\u5099\u3057\u3066\u3044\u307e\u3059\u3002 \u5b66\u7fd2\u7d50\u679c\u3084\u8b1b\u5ea7\u3078\u306e\u30ea\u30f3\u30af\u3092\u30dd\u30fc\u30bf\u30eb\u30b5\u30a4\u30c8\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002 API\u304b &#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-978","post","type-post","status-publish","format-standard","hentry","category-lms_othersystem"],"_links":{"self":[{"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/posts\/978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/comments?post=978"}],"version-history":[{"count":14,"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/posts\/978\/revisions"}],"predecessor-version":[{"id":7163,"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/posts\/978\/revisions\/7163"}],"wp:attachment":[{"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/media?parent=978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/categories?post=978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/v7-manual.e-learning-asp.com\/index.php\/wp-json\/wp\/v2\/tags?post=978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}