<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>apicode</author_name>
  <author_url>https://blog.hatena.ne.jp/apicode/</author_url>
  <blog_title>AI社長のブログ</blog_title>
  <blog_url>https://www.kyoukasho.net/</blog_url>
  <categories>
    <anon>Geminiの教科書</anon>
  </categories>
  <description>PHPでGemini APIを使うサンプルです。 まずGoogleのAIスタジオからAPIキーを入手します。 Untitled prompt | Google AI Studio 以下PHPサンプル。 $prompt=&quot;海のつくことわざを教えて&quot;; $api=&quot;*********************&quot;;//APIキー $url = &quot;https://generativelanguage.googleapis.com/v1/models/gemini-pro:generateContent?key=&quot;.$api; $data = array( &quot;contents&quot; =&gt; array( arr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.kyoukasho.net%2Fentry%2Fphp-gemini-sample&quot; title=&quot;【PHP】Gemini APIを使うサンプル - AI社長のブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/apicode/20240604/20240604141138.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-04 14:21:34</published>
  <title>【PHP】Gemini APIを使うサンプル</title>
  <type>rich</type>
  <url>https://www.kyoukasho.net/entry/php-gemini-sample</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
