{"id":3324,"date":"2023-03-23T17:23:14","date_gmt":"2023-03-23T08:23:14","guid":{"rendered":"https:\/\/to-inc.co.jp\/socialbook\/?p=3324"},"modified":"2023-07-07T03:05:32","modified_gmt":"2023-07-06T18:05:32","slug":"%e3%80%90%e8%b6%85%e7%b0%a1%e5%8d%98%e3%80%91chatgpt%e3%82%92php%e3%81%a7%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/to-inc.co.jp\/socialbook\/?p=3324","title":{"rendered":"\u3010\u8d85\u7c21\u5358\u3011ChatGPT\u3092PHP\u3067\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>2023\u5e74\u5927\u6ce8\u76ee\u306e<span>ChatGPT\u306eAPI\u304c\u89e3\u653e\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n<\/span><span>\u4eba\u5de5\u77e5\u80fd\u3092\u7528\u3044\u305f\u81ea\u7136\u306a\u5bfe\u8a71\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u958b\u767a\u3055\u308c\u305f\u30e2\u30c7\u30eb\u306f\u4eca\u5f8c\u304b\u306a\u308a\u6ce8\u76ee\u3055\u308c\u3066\u3044\u304f\u3053\u3068\u3067\u3057\u3087\u3046\u3002<\/span><\/p>\n<p>\u4eca\u56de\u306fAPI\u3092\u5229\u7528\u3057\u3066PHP\u3067\u52d5\u304b\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"marker2\"><strong>1.OpenAI\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u53d6\u5f97<\/strong><\/span><br \/>\n<span class=\"marker2\"><strong>2.API\u30ad\u30fc\u306e\u53d6\u5f97<\/strong><\/span><br \/>\n<span class=\"marker2\"><strong>3.PHP\u3067API\u3092\u5229\u7528<\/strong><\/span><\/p>\n<h2>API\u3092\u5229\u7528\u3059\u308b\u306b\u306f\uff1f\uff08\u6e96\u5099\uff09<\/h2>\n<h3 id=\"index_id3\">OpenAI\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u958b\u8a2d<\/h3>\n<p>\u2460<strong><a href=\"https:\/\/openai.com\/api\/\">OpenAI API<\/a>\u3078\u9077\u79fb<br \/>\n<img loading=\"lazy\" src=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152.png\" alt=\"\" width=\"1905\" height=\"842\" class=\"alignnone size-full wp-image-3327\" srcset=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152.png 1905w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152-300x133.png 300w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152-1024x453.png 1024w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152-768x339.png 768w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152-1536x679.png 1536w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174152.png 856w\" sizes=\"(max-width: 1905px) 100vw, 1905px\" \/><br \/>\n<\/strong><\/p>\n<p><span>\u300cGet started\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3092\u5b8c\u4e86\u3055\u305b\u307e\u3059\u3002<\/span><\/p>\n<div class=\"jin-iconbox yellow-iconbox\">\n<div class=\"jin-iconbox-icons\"><i class=\"jic jin-ifont-caution jin-icons\"><\/i><\/div>\n<div class=\"jin-iconbox-main yellow--border\">\n<ul>\n<li><span style=\"color: #333333;\">\u00a0\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u306e\u4ed6\u3001Google\u30a2\u30ab\u30a6\u30f3\u30c8\u304bMicrosoft\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a8d\u8a3c\u3082\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3002<\/span><\/li>\n<li><span style=\"color: #333333;\"><span>\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u306b\u306f\u96fb\u8a71\u8a8d\u8a3c\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067\u4e8b\u524d\u306bSMS\u304c\u5229\u7528\u53ef\u80fd\u306a\u96fb\u8a71\u756a\u53f7\u3092\u7528\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/span><\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h3 id=\"index_id3\">API\u30ad\u30fc\u306e\u767a\u884c<\/h3>\n<p><span>\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u5f8c\u3001<strong><a href=\"https:\/\/platform.openai.com\/account\/api-keys\">OpenAPI-keys<\/a><\/strong>\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u300c\uff0b Create new secret Key\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u4e0b\u3055\u3044\u3002\u00a0<\/span><\/p>\n<img loading=\"lazy\" src=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833.png\" alt=\"\" width=\"1903\" height=\"668\" class=\"alignnone size-full wp-image-3328\" srcset=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833.png 1903w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833-300x105.png 300w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833-1024x359.png 1024w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833-768x270.png 768w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833-1536x539.png 1536w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-21-174833.png 856w\" sizes=\"(max-width: 1903px) 100vw, 1903px\" \/>\n<p><span>API\u30ad\u30fc\u304c\u767a\u884c\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3042\u3068\u3067\u5229\u7528\u3059\u308b\u306e\u3067\u4fdd\u5b58\u5fc5\u9808\u3067\u3059\u3002<\/span><\/p>\n<h2>PHP\u3067API\u3092\u5229\u7528\uff08\u5b9f\u88c5\uff09<\/h2>\n<p><span>JavaScript\u306e<\/span><strong>Fetch API<\/strong>\u3092\u5229\u7528\u3057\u3066PHP\uff08ChatGPT\u306e\u51e6\u7406\u30d5\u30a1\u30a4\u30eb\uff09\u3092\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3057\u3066\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u25a0javascript\u306e\u30b3\u30fc\u30c9\u4f8b<\/p>\n<pre class=\"language-javascript\"><code>sendButton.addEventListener('click', () =&gt; {\r\n  const userInputValue = userInput.value.trim(); \/\/ \u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u5165\u529b\u3055\u308c\u305f\u6587\u5b57\u5217\r\n\r\n  if (userInputValue === '') return;\r\n  addChatBubble(userInputValue, 'user');\r\n\r\n  fetch('..\/..\/api\/api_chatGPT.php', {  \/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u5148\u306ePHP\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\r\n    method: 'POST',\r\n    headers: {\r\n      'Content-Type': 'application\/json',\r\n    },\r\n    body: JSON.stringify({ \r\n      prompt: userInputValue  \/\/ \u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u5165\u529b\u3055\u308c\u305f\u6587\u5b57\u5217\u3092\u683c\u7d0d\r\n    })\r\n  })\r\n.then(response =&gt; response.json())\r\n.then(data =&gt; {\r\n  const chatGPTResponse = data; \/\/ ChatGPT\u3067AI\u304c\u56de\u7b54\u3057\u305f\u5185\u5bb9\u3092\u683c\u7d0d\r\n  console.log(chatGPTResponse);\r\n});<\/code><\/pre>\n<div class=\"jin-iconbox yellow-iconbox\">\n<div class=\"jin-iconbox-icons\"><i class=\"jic jin-ifont-caution jin-icons\"><\/i><\/div>\n<div class=\"jin-iconbox-main yellow--border\">\n<ul>\n<li><span style=\"color: #333333;\">\u00a0javascript\u304b\u3089PHP\u3092\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3059\u308b\u51e6\u7406\u306e\u307f\u4e0a\u8a18\u3067\u660e\u8a18\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u4e00\u90e8\u306e\u51e6\u7406\u90e8\u5206\u306e\u307f\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/li>\n<li><span style=\"color: #333333;\"><span>HTML,CSS,javascript\u3092\u5229\u7528\u3057\u3066\u958b\u767a\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/span><\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p id=\"index_id3\"><span style=\"font-size: 16px;\">\u25a0PHP\u306e\u30b3\u30fc\u30c9\u4f8b<\/span><\/p>\n<pre class=\"language-php\"><code>$input_json = file_get_contents('php:\/\/input');\r\n$post = json_decode( $input_json, true );\r\n$req_question = $post['prompt'];\r\n\r\n$result = array();\r\n\r\n\/\/ API\u30ad\u30fc\r\n$apiKey = '\u3010\u751f\u6210\u3057\u305fAPI\u30ad\u30fc\u3011';\r\n\r\n\/\/openAI API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\r\n$endpoint = 'https:\/\/api.openai.com\/v1\/chat\/completions';\r\n\r\n$headers = array(\r\n  'Content-Type: application\/json',\r\n  'Authorization: Bearer ' . $apiKey\r\n);\r\n\r\n\/\/ \u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30da\u30a4\u30ed\u30fc\u30c9\r\n$data = array(\r\n  'model' =&gt; 'gpt-3.5-turbo',\r\n  'messages' =&gt; [\r\n    [\r\n    \"role\" =&gt; \"system\",\r\n    \"content\" =&gt; \"\u65e5\u672c\u8a9e\u3067\u5fdc\u7b54\u3057\u3066\u304f\u3060\u3055\u3044\"\r\n    ],\r\n    [\r\n    \"role\" =&gt; \"user\",\r\n    \"content\" =&gt; $req_question\r\n    ]\r\n  ]\r\n);\r\n\r\n\/\/ cURL\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u521d\u671f\u5316\r\n$ch = curl_init();\r\n\r\n\/\/ cURL\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\r\ncurl_setopt($ch, CURLOPT_URL, $endpoint);\r\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\r\ncurl_setopt($ch, CURLOPT_POST, true);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));\r\ncurl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\n\r\n\/\/ API\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\r\n$response = curl_exec($ch);\r\n\r\n\/\/ cURL\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9589\u3058\u308b\r\ncurl_close($ch);\r\n\r\n\/\/ \u5fdc\u7b54\u3092\u89e3\u6790\r\n$result = json_decode($response, true);\r\n\r\n\/\/ \u751f\u6210\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u53d6\u5f97\r\n$text = $result['choices'][0]['message']['content'];\r\n\r\necho json_encode($text, JSON_PRETTY_PRINT);<\/code><\/pre>\n<div class=\"jin-iconbox yellow-iconbox\">\n<div class=\"jin-iconbox-icons\"><i class=\"jic jin-ifont-caution jin-icons\"><\/i><\/div>\n<div class=\"jin-iconbox-main yellow--border\">\n<ul>\n<li><span style=\"color: #333333;\">\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nhttps:\/\/api.openai.com\/v1\/chat\/completions<br \/>\n<\/span><\/li>\n<li><span style=\"color: #333333;\">\u300cmodel\u300d\u306f\u300cgpt-3.5-turbo\u300d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/span><\/li>\n<li><span style=\"color: #333333;\">\u4e3b\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u300cmessages\u300d\u3067\u3059\u3002\u300cmessages\u300d\u306f\u3001\u300crole\u300d (system \/ user) \u3068\u300cconetnt\u300d (\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u5bb9) \u3092\u6301\u3064\u8f9e\u66f8\u306e\u914d\u5217\u3067\u3059\u3002<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h2>\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8<\/h2>\n<p>\u3053\u3061\u3089\u304c\u5b8c\u6210\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002<br \/>\n\u5bfe\u8a71\u5f62\u5f0f\u306e\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u306e\u3088\u3046\u306aUI\u306b\u3057\u3066\u307e\u3059\u3002<\/p>\n<img loading=\"lazy\" src=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792.png\" alt=\"\" width=\"1592\" height=\"521\" class=\"alignnone size-full wp-image-3329\" srcset=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792.png 1592w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792-300x98.png 300w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792-1024x335.png 1024w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792-768x251.png 768w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792-1536x503.png 1536w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/-2023-03-21-182029-e1679390666792.png 856w\" sizes=\"(max-width: 1592px) 100vw, 1592px\" \/>\n<p><span>OpenAI\u306eAPI\u306f\u6709\u6599\u3067\u3059\u3002<br \/>\n<span class=\"marker2\"><b>1000\u30c8\u30fc\u30af\u30f3\u3042\u305f\u308a0.002\u30c9\u30eb\uff08\u7d040.27\u5186\uff09<\/b><\/span>\u3067\u3059\u3002<br \/>\n<\/span><\/p>\n<h2>\u3061\u306a\u307f\u306b\u30fb\u30fb\u30fb\u30c8\u30fc\u30af\u30f3\u3068\u306f\uff1f<\/h2>\n<p><span style=\"font-size: 16px;\">\u6587\u5b57\uff08Character\uff09\u3068\u5358\u8a9e\uff08Word\uff09\u306e\u9593\u306e\u5358\u4f4d\u3092\u8868\u3057\u307e\u3059\u3002<br \/>\n<span>API\u6599\u91d1\u306f\u3001\u3053\u306e\u30c8\u30fc\u30af\u30f3\u6570\u306b\u5fdc\u3058\u3066\u8ab2\u91d1\u3055\u308c\u308b\u305f\u3081\u3001\u30c8\u30fc\u30af\u30f3\u306e\u7406\u89e3\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/span><br \/>\n<\/span><\/p>\n<style type=\"text\/css\">\n\t\t\t#gallery-1 {\n\t\t\t\tmargin: auto;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-item {\n\t\t\t\tfloat: left;\n\t\t\t\tmargin-top: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t#gallery-1 img {\n\t\t\t\tborder: 2px solid #cfcfcf;\n\t\t\t}\n\t\t\t#gallery-1 .gallery-caption {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t\t\/* see gallery_shortcode() in wp-includes\/media.php *\/\n\t\t<\/style>\n<div id='gallery-1' class='gallery galleryid-3324 gallery-columns-1 gallery-size-large'>\n<dl class='gallery-item'>\n<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/to-inc.co.jp\/socialbook\/?attachment_id=3331'><img width=\"1024\" height=\"709\" src=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/ChatGPT\u306eAPI\u5229\u7528\u6599\u91d1_\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066-1024x709.jpg\" class=\"attachment-large size-large\" alt=\"\" loading=\"lazy\" srcset=\"https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/ChatGPT\u306eAPI\u5229\u7528\u6599\u91d1_\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066-1024x709.jpg 1024w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/ChatGPT\u306eAPI\u5229\u7528\u6599\u91d1_\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066-300x208.jpg 300w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/ChatGPT\u306eAPI\u5229\u7528\u6599\u91d1_\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066-768x532.jpg 768w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/ChatGPT\u306eAPI\u5229\u7528\u6599\u91d1_\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066.jpg 1040w, https:\/\/to-inc.co.jp\/socialbook\/wp-content\/uploads\/2023\/03\/ChatGPT\u306eAPI\u5229\u7528\u6599\u91d1_\u30c8\u30fc\u30af\u30f3\u306b\u3064\u3044\u3066-1024x709.jpg 856w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a>\n\t\t\t<\/dt>\n<\/dl>\n<p><br style=\"clear: both\" \/>\n\t\t<\/div>\n<h2>\u307e\u3068\u3081<\/h2>\n<p><span>\u7c21\u5358\u306bChatGPT\u306eAPI\u3092PHP\u3092\u7528\u3044\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n<\/span><span>ChatGPT\u306eAPI\u304c\u516c\u958b\u3055\u308c\u305f\u3053\u3068\u3067\u4eca\u5f8c\u69d8\u3005\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306bChatGPT\u304c\u6d3b\u7528\u3055\u308c\u305d\u3046\u3067\u3059\u3002<\/span><\/p>\n<p>\u5f0a\u793e\u3067\u306f\u3001\u69d8\u3005\u306aAPI\u3092\u5229\u7528\u3057\u3066<a href=\"https:\/\/genba.to-inc.co.jp\/genba2\/\"><span class=\"marker\">SNS\u5206\u6790\u30c4\u30fc\u30eb\u300cGENba\u300d<\/span><\/a>\u3092\u958b\u767a\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u5bfe\u8c61\u306eAPI\u306f\u4ee5\u4e0b\u3067\u3059\u3002<br \/>\n\u30fbInstagram graph API<br \/>\n\u30fbTwitter API<br \/>\n\u30fbTikTok API<br \/>\n\u30fbOpen AI API<\/p>\n<p>\u6700\u65b0\u306e\u6280\u8853\u3092\u99c6\u4f7f\u3057\u3001\u5f0a\u793e\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u6a5f\u80fd\u3092\u958b\u767a\u3057\u306a\u304c\u3089\u3001\u65e5\u3005\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6c17\u306b\u306a\u308b\u65b9\u306f\u3053\u3061\u3089\u307e\u3067\u304a\u554f\u5408\u305b\u304f\u3060\u3055\u3044\u3002<br \/>\n\u25bc<a href=\"https:\/\/genba.to-inc.co.jp\/genba2\/form.html\"><span class=\"marker\">GENba\u306b\u95a2\u3059\u308b<\/span><span class=\"marker\">\u554f\u3044\u5408\u308f\u305b\u5148\u306f\u3053\u3061\u3089<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2023\u5e74\u5927\u6ce8\u76ee\u306eChatGPT\u306eAPI\u304c\u89e3\u653e\u3055\u308c\u307e\u3057\u305f\u3002 \u4eba\u5de5\u77e5\u80fd\u3092\u7528\u3044\u305f\u81ea\u7136\u306a\u5bfe\u8a71\u3092\u5b9f\u73fe\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u958b\u767a\u3055\u308c\u305f\u30e2\u30c7\u30eb\u306f\u4eca\u5f8c\u304b\u306a\u308a\u6ce8\u76ee\u3055\u308c\u3066\u3044\u304f\u3053\u3068\u3067\u3057\u3087\u3046\u3002 \u4eca\u56de\u306fAPI\u3092\u5229\u7528\u3057\u3066PHP\u3067\u52d5\u304b\u3059\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e<\/p>\n","protected":false},"author":1,"featured_media":3348,"comment_status":"open","ping_status":"open","sticky":false,"template":"onecolumn-760.php","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/posts\/3324"}],"collection":[{"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3324"}],"version-history":[{"count":20,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/posts\/3324\/revisions"}],"predecessor-version":[{"id":3351,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/posts\/3324\/revisions\/3351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=\/wp\/v2\/media\/3348"}],"wp:attachment":[{"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/to-inc.co.jp\/socialbook\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}