This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rewrote "create_tweet.js" using axios, instead of got. | |
// https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Manage-Tweets/create_tweet.js | |
// License: Apache 2.0 | |
// Worked under the below environment | |
// node v16.4.0 | |
// "axios": "^0.26.0", | |
// "crypto": "^1.0.1", | |
// "oauth-1.0a": "^2.2.6", | |
// "querystring": "^0.2.1", | |
// "readline": "^1.3.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rewrote "create_tweet.js" using ESModule. | |
// https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Manage-Tweets/create_tweet.js | |
// License: Apache 2.0 | |
import got from 'got'; | |
import crypto from 'crypto'; | |
import OAuth from 'oauth-1.0a'; | |
import qs from 'querystring'; | |
import readline from 'node:readline'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@charset "UTF-8"; | |
html { | |
background:#fff; | |
color:#000; | |
font-family:sans-serif; | |
-ms-text-size-adjust:100%; | |
-webkit-text-size-adjust:100% | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<script> | |
fetch('http://your-mt/mt-data-api.cgi/v3/sites/blog_id/entries') | |
.then((response) => response.json()) | |
.then((json) => console.log(json)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:GetObject", | |
"Resource": "arn:aws:s3:::handson-sample/*" | |
} |