<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>GAS串接 Padlet by unbias k</title>
      <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3</link>
      <description>api囉</description>
      <language>en-us</language>
      <pubDate>2024-06-29 07:30:19 UTC</pubDate>
      <lastBuildDate>2025-04-24 11:55:38 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-uploads.storage.googleapis.com/2555732558/bb16372a09d7d4dc22fd481c03769fd7/giphy_converted.gif</url>
      </image>
      <item>
         <title>課程專區</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3041149016</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://sites.google.com/view/s810802/" />
         <pubDate>2024-06-29 07:31:01 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3041149016</guid>
      </item>
      <item>
         <title>天青色等煙雨</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044702966</link>
         <description><![CDATA[<ul><li><p>而我在等你</p></li><li><p>炊煙裊裊昇起</p></li><li><p>隔江千萬里</p></li></ul>]]></description>
         <enclosure url="https://images.unsplash.com/photo-1515694346937-94d85e41e6f0?crop=entropy&amp;cs=srgb&amp;fm=jpg&amp;ixid=M3w3ODI2fDB8MXxzZWFyY2h8MXx8JUU1JUE0JUE5JUU5JTlEJTkyJUU4JTg5JUIyJUU3JUFEJTg5JUU3JTg1JTk5JUU5JTlCJUE4fHpoLUhhbnN8MXx8fHwxNzIwMDU1Nzg4fDA&amp;ixlib=rb-4.0.3&amp;q=85" />
         <pubDate>2024-07-04 00:41:49 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044702966</guid>
      </item>
      <item>
         <title>從GAS發文</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044742790</link>
         <description><![CDATA[<p>Created using the API from  GAS!!</p><p>code</p><pre><code>function createPadletPost() {
  var apiKey = 'xxx';
  var boardId = 'yyy';  // 替換為您的 board_id
  var url = 'https://api.padlet.dev/v1/boards/' + boardId + '/posts';

  var payload = {
    "data": {
      "type": "post",
      "attributes": {
        "content": {
          "subject": "Test post",
          "body": "Created using the API!",
          "attachment": {
            "url": "http://example.com",
            "caption": "Example website"
          }
        },
        "color": "red"
      }
    }
  };

  var options = {
    'method': 'post',
    'headers': {
      'Content-Type': 'application/json',
      'X-API-KEY': apiKey
    },
    'payload': JSON.stringify(payload),
    'muteHttpExceptions': true
  };

  var response = UrlFetchApp.fetch(url, options);
  var responseCode = response.getResponseCode();
  if (responseCode === 201) {
    var responseData = JSON.parse(response.getContentText());
    Logger.log('Post created successfully: ' + responseData.data.id);
  } else {
    Logger.log('Error: ' + responseCode);
    Logger.log('Response: ' + response.getContentText());
  }
}</code></pre>]]></description>
         <enclosure url="http://example.com" />
         <pubDate>2024-07-04 01:15:25 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044742790</guid>
      </item>
      <item>
         <title>獲取board中的sections</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044868254</link>
         <description><![CDATA[<pre><code>function getBoardSections() {
  var apiKey = 'xxx';
  var boardId = 'yyy';  // 替換為您的 board_id
  var url = 'https://api.padlet.dev/v1/boards/' + boardId + '?include=sections';

  var options = {
    'method': 'get',
    'headers': {
      'Content-Type': 'application/json',
      'X-API-KEY': apiKey
    },
    'muteHttpExceptions': true
  };

  var response = UrlFetchApp.fetch(url, options);
  var responseCode = response.getResponseCode();
  if (responseCode === 200) {
    var responseData = JSON.parse(response.getContentText());
    Logger.log('Sections: ' + JSON.stringify(responseData.data.relationships.sections.data));
  } else {
    Logger.log('Error: ' + responseCode);
    Logger.log('Response: ' + response.getContentText());
  }
}</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-04 02:45:42 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044868254</guid>
      </item>
      <item>
         <title>使用section ID 來一次多post</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044879213</link>
         <description><![CDATA[<pre><code>var sectionid ='zzz'
function createPadletPost() {
  var apiKey = 'xxx';
  var boardId = 'yyy';  // 替換為您的 board_id
  var url = 'https://api.padlet.dev/v1/boards/' + boardId + '/posts';

  var attachments = [
    {
      "type": "file",
      "url": "http://example.com/file.pdf",
      "caption": "Example PDF File"
    },
    {
      "type": "link",
      "url": "http://example.com",
      "caption": "Example Website"
    },
    {
      "type": "camera_photo",
      "url": "http://example.com/photo.jpg",
      "caption": "Example Camera Photo"
    },
    {
      "type": "video_recording",
      "url": "http://example.com/video.mp4",
      "caption": "Example Video Recording"
    },
    {
      "type": "audio_recording",
      "url": "http://example.com/audio.mp3",
      "caption": "Example Audio Recording"
    },
    {
      "type": "screen_recording",
      "url": "http://example.com/screen_recording.mp4",
      "caption": "Example Screen Recording"
    },
    {
      "type": "drawing",
      "url": "http://example.com/drawing.png",
      "caption": "Example Drawing"
    },
    {
      "type": "poll",
      "question": "Example Poll",
      "options": ["Option 1", "Option 2"]
    },
    {
      "type": "google_drive",
      "url": "http://drive.google.com/file/example",
      "caption": "Example Google Drive File"
    },
    {
      "type": "gif",
      "url": "http://example.com/animation.gif",
      "caption": "Example GIF"
    },
    {
      "type": "youtube",
      "url": "http://youtube.com/example",
      "caption": "Example YouTube Video"
    },
    {
      "type": "spotify",
      "url": "http://spotify.com/example",
      "caption": "Example Spotify Track"
    },
    {
      "type": "location",
      "latitude": 37.7749,
      "longitude": -122.4194,
      "locationName": "San Francisco"
    }
  ];

  attachments.forEach(function(attachment) {
    var payload = {
      "data": {
        "type": "post",
        "attributes": {
          "content": {
            "subject": "Multimedia Post",
            "body": "This post includes various multimedia content.",
            "attachment": attachment
          },
          "color": "purple"
        },
        "relationships": {
          "section": {
            "data": {
              "id": sectionid
            }
          }
        }
      }
    };

    var options = {
      'method': 'post',
      'headers': {
        'Content-Type': 'application/json',
        'X-API-KEY': apiKey
      },
      'payload': JSON.stringify(payload),
      'muteHttpExceptions': true
    };

    var response = UrlFetchApp.fetch(url, options);
    var responseCode = response.getResponseCode();
    if (responseCode === 201) {
      var responseData = JSON.parse(response.getContentText());
      Logger.log('Post created successfully: ' + responseData.data.id);
    } else {
      Logger.log('Error: ' + responseCode);
      Logger.log('Response: ' + response.getContentText());
    }
  });
}
</code></pre>]]></description>
         <enclosure url="" />
         <pubDate>2024-07-04 02:53:19 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044879213</guid>
      </item>
      <item>
         <title>AI Meme GIF</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044897809</link>
         <description><![CDATA[When AI solves your problemThis is a perfect meme for AI enthusiasts!]]></description>
         <enclosure url="https://media.giphy.com/media/3o7aD2saalBwwftBIY/giphy.gif" />
         <pubDate>2024-07-04 03:04:53 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3044897809</guid>
      </item>
      <item>
         <title>富邦公司治理</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3144018176</link>
         <description><![CDATA[<p>(代號：00692)</p>]]></description>
         <enclosure url="https://doc.twse.com.tw/pdf/202406_A00010_E71_4_20240929_081757.pdf" />
         <pubDate>2024-09-29 00:19:06 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3144018176</guid>
      </item>
      <item>
         <title>臺灣水泥股份有限公司</title>
         <author>unbiask</author>
         <link>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3144020944</link>
         <description><![CDATA[<p>有關水泥及水泥製品之生產及運銷<br>有關水泥原料及水泥製品原料之開採製造運銷及附屬礦石之開採經銷<br>經營有關水泥工業及其附屬事業</p>]]></description>
         <enclosure url="https://www.tccgroupholdings.com/tw/" />
         <pubDate>2024-09-29 00:30:01 UTC</pubDate>
         <guid>https://padlet.com/s810802c/f6umj0ky5ohbdpc3/wish/3144020944</guid>
      </item>
   </channel>
</rss>
