前回、Twitter botを作るための基礎知識としてTwitter APIについて説明しました。今回は実際にプログラムを組んでみましょう。ここでは例としてPHPでの発言方法を紹介します。 Twitter botに発言させてみる まずはPHPの標準機能を使って発言をしてみます。Twitter用ライブラリを使った発言については後ほど解説します。 <?php // curlリソースの作成 $curl = curl_init(); // ユーザ名 $username = "(ユーザ名を設定)"; // パスワード $password = "(パスワードを設定)"; // 発言する文字列を設定する // プログラムの文字コードがUTF-8の場合はこのまま $status = "日本語のテスト"; // プログラムの文字コードがSJISの場合はUTF-8に変換 //$status = mb_conv
This documentation is for 1.2 only. 1.3 documentation can be found in the API Docs section of the site. These are all of the public functions for SimplePie. Our goal is to not break any of these constructors and methods for all 1.x releases. If there are methods or constructors not mentioned here, or are marked “Non-Public”, then they are not considered public and may change tomorrow and the “no-b
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く