<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Multipart on tanaike - Google Apps Script, Gemini API, and Developer Tips</title>
    <link>https://tanaikech.github.io/tags/multipart/</link>
    <description>Recent content in Multipart on tanaike - Google Apps Script, Gemini API, and Developer Tips</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <copyright>&amp;copy; 2026. All rights reserved.</copyright>
    <lastBuildDate>Sat, 17 Oct 2020 11:00:07 +0900</lastBuildDate>
    <atom:link href="https://tanaikech.github.io/tags/multipart/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Request of multipart/form-data with Simple Request Body using Google Apps Script</title>
      <link>https://tanaikech.github.io/2020/10/17/request-of-multipart/form-data-with-simple-request-body-using-google-apps-script/</link>
      <pubDate>Sat, 17 Oct 2020 11:00:07 +0900</pubDate>
      <guid>https://tanaikech.github.io/2020/10/17/request-of-multipart/form-data-with-simple-request-body-using-google-apps-script/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/5cd0dc9ea7d75e4a2ff65049ed3d78c3&#34;&gt;Gists&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;This is a sample script of the request of &lt;code&gt;multipart/form-data&lt;/code&gt; with a simple request body using Google Apps Script. I hope that the users will easy to use Class UrlFetchApp by this report.&lt;/p&gt;&#xA;&lt;p&gt;This report is the updated post of &amp;ldquo;&lt;a href=&#34;https://tanaikech.github.io/2017/07/21/multipart-post-request-using-google-apps-script/&#34;&gt;Multipart-POST Request Using Google Apps Script&lt;/a&gt;&amp;rdquo;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;description&#34;&gt;Description&lt;/h2&gt;&#xA;&lt;p&gt;I had already reported about this at &lt;a href=&#34;https://tanaikech.github.io/2017/07/21/multipart-post-request-using-google-apps-script/&#34;&gt;this report&lt;/a&gt;. In that case, it was required to create a bit complicated request body to request &lt;code&gt;multipart/form-data&lt;/code&gt;. Today, by &lt;a href=&#34;https://stackoverflow.com/questions/64382781/api-post-request-in-google-app-script-not-working/64382970?noredirect=1#comment113873694_64382970&#34;&gt;a comment&lt;/a&gt;, I could notice the sample script of Class UrlFetchApp in the official document had been updated. By this, I thought that &lt;code&gt;multipart/form-data&lt;/code&gt; will be requested with a simple request body. In this report, I would like to introduce a sample script for requesting &lt;code&gt;multipart/form-data&lt;/code&gt; with a simple request body. But I&amp;rsquo;m not sure whether this request got to be able to be done by the internal update of Class UrlFetchApp.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Multipart-POST Request Using Google Apps Script</title>
      <link>https://tanaikech.github.io/2017/07/21/multipart-post-request-using-google-apps-script/</link>
      <pubDate>Fri, 21 Jul 2017 10:34:38 +0900</pubDate>
      <guid>https://tanaikech.github.io/2017/07/21/multipart-post-request-using-google-apps-script/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://gist.github.com/tanaikech/d595d30a592979bbf0c692d1193d260c&#34;&gt;Gist&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;These sample scripts are for requesting multipart post using Google Apps Script.&lt;/p&gt;&#xA;&lt;p&gt;In most cases, the multipart request is used for uploading files. So I prepared 2 sample situations as follows. For each situation, the request parameters are different.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Upload a file from Google Drive to Slack.&lt;/li&gt;&#xA;&lt;li&gt;Convert an excel file to Spreadsheet on Google Drive using Drive API v3.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Multipart post is required for these situations.&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-uploading-files-from-google-drive-to-slack&#34;&gt;1. Uploading Files From Google Drive To Slack&lt;/h2&gt;&#xA;&lt;h3 id=&#34;curl-code&#34;&gt;Curl Code&lt;/h3&gt;&#xA;&lt;p&gt;In order to use this sample, please retrieve access token for uploading file to Slack.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
