Hello World for Threads

オープン
#309 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js
領域
api

調査の方向性

Start by checking the supplied JavaScript example against the Threads API documentation and trying it with a valid API token. Done would mean identifying whether the request works and documenting the specific problems or corrections needed; no repository file or test is named.

索引モデルが issue の本文から書いたものです。

説明

I asked ChatGPT to write a simple Hello World app for the Threads API.

const axios = require('axios');

// Replace with your API token
const apiToken = 'YOUR_API_TOKEN_HERE';

const postHelloWorld = async () => {
    try {
        const response = await axios.post('https://api.threads.com/v1/posts', {
            content: 'Hello, World!'
        }, {
            headers: {
                'Authorization': `Bearer ${apiToken}`,
                'Content-Type': 'application/json'
            }
        });

        console.log('Post ID:', response.data.id);
        console.log('Post Content:', response.data.content);
    } catch (error) {
        console.error('Error posting to Threads API:', error);
    }
};

postHelloWorld();

I haven't tried running it yet. But maybe you can spot problems like cpinto did.

主要言語
HTML
スター
134
フォーク
10
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scripting/Scripting-News のほかの issue

scripting/Scripting-News の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。