Google Ads API Auth Series Looking to streamline your Google Ads campaigns, then you have come to the right place. Our website provides detailed information and tutorials on how to use the Google Ads API to improve your ad campaigns. The Google Ads API is a programmatic interface for managing Google Ads campaigns. It allows you to automate tasks such as creating campaigns, updating ad groups, and
PHP+OAuthでTwitter Twitterで最近よく見る「OAuth」、オース or オーオースって多分読むのでしょうが、これは簡単に言うとTwitterの新たな認証方式といえます。 今まではBasic認証が一般的でしたが、将来的にセキュリティ面で非推奨になるといわれているらしく、Twitterは今後はOAuthを推奨しています。 英語ですが、そのように書いてあります。 →Twitter API Wiki / Authentication ただ、Basic認証は手軽に出来るものでしたが、OAuthはちょいと手間がかかったりもするのでそんなにさっさと移行できるものではなかったりもしますが。 まぁOAuthについては、しばさんが詳しく書かれているのでそちらを参照していただくと早いかもしれないです。 内容はRuby+OAuthですが、プログラム部分以外は共通しています。 →Twit
方法も何も、これさえできていれば PHPでTwitter APIのOAuthを使う方法まとめ – 頭ん中 一カ所書き換えるだけ。 事前の準備 アプリケーションを Sign in with Twitter に対応させときましょう。 https://twitter.com/apps に行く。 対象となるアプリケーションを選ぶ。(アプリケーション未登録の場合は上掲の記事に登録方法を書いているのでまずはそちらへ。) “Edit Application Settings” のボタンを押す。 一番下のあたりにある “Use Twitter for login” のところにチェックを入れて “Save” のボタンを押す。 はい完了。 Sign in with Twitter のやり方 OAuth でユーザーに承認してもらうとき、通常なら http://twitter.com/oauth/authoriz
機能について ここで紹介するtwitterボットプログラムは、Oauthを使って認証し、XMLでつぶやき・返信コンテンツを編集できるrubyのプログラムです。Unix系のcronやWindows系のタスクで動かすことを想定しています。 ちなみに具体的な実装の説明は http://d.hatena.ne.jp/sifue/20100125/1264394021 こちら。こっちにソースを載せてます。 機能は以下の通り post.xmlからつぶやく フォローしている人をフォローし返す 新たにフォローしてくれた人に、welcome.xmlからウェルカムポストを実行する 自分への返信にキーワードがあるか解析してreply_for_me.xmlから返信する 自分がフォローしている人のポストにキーワードがあるか解析してreply.xmlから返信する xmlからはランダムまたはポスト回数の少ない最後のポス
この記事以降 Twitter API の仕様が変わっており、このままでは正しく機能しない場合があると思います。近いうちに今のやり方を書くので、それまで参考程度にご覧ください。 Twitter API の OAuth でひととおりやってみた。 忘れないようにメモ。 大雑把な流れ Twitter にアプリケーションを登録する。 Consumer Key と Consumer secret を取得する。 リクエストトークンを取得する。 認証用 URL を取得する。 ユーザーから承認を受ける(bot の場合は自分でやる)。 アクセストークンを取得する。 API にアクセスする。 以下、やった作業の手順です。 事前準備 HTTP_OAuth を使えるようにする OAuth の通信部分そのものは PEAR の HTTP_OAuth を使うことにしたので これをインストールする。 一番めんどくさい部分を
特徴 PHP5で動く、PHP4は非サポート(動くかもしれないが基本的に対応する予定なし、むしろPHP5.3以降必須にしたいくらい) cURLが無くても動く。あったらcURLを使う。 Basic認証とOAuthに対応(Andy Smith 氏のbasic php libraryを利用) twitter APIの各メソッドは一つのcallメソッドで対応、twittterのメソッド名とarrayパラメータを渡して実行する エラーは例外を発行 予定 まだ自分が使うメソッドしか用意してないのでゆくゆく他のメソッドに対応する OAuthの部分がPHP5.3以降だとPHP Deprecatedなので修正する 余談 むかしPEARのService_Twitterとかつかってちょっと遊んだことがあったけど、なんで今更こんな後発のライブラリをつくったのか。 twitter-botをつくる機会があったんだけどP
Twitter APIのBASIC認証は2010年6月に「廃止予定」(→8月まで延長)(→廃止された模様) 2010年01月05日 11:51Twitter 昨年12月にパリで開催されたインターネットのイベント LeWeb’09 で Twitter のプラットフォームディレクターの Ryan Sarver さんが登壇して いくつかの発表を行ったらしいんだけど その中にこういうのがあった。 Twitter Spawned 50,000 Apps To Date, Will Open Up Firehose For More starting Basic Auth decprecation in June 2010. 2010年6月から Twitter API の BASIC 認証が deprecated になるとのこと。 Deprecated というのは「非推奨」「廃止予定」という意味で こ
twitterに興味がある人は、自分で組んだプログラムで自動投稿をするbotなんかを作ってみたいと思う事があるだろう。 つまづくところは色々あると思うけど、今回はtwitterに投稿する部分を紹介したい。 その他色々は『twitterのbotをphpで制作するまとめ』にあります。 2010/4/29 追記 以下は古い記事なのでこちらを参照した方が良いです。 OAuthとはどんなもの? twitterに投稿する方法はBasic認証とOAuth認証がある。 自分が管理するbotならばパスワードを流出する機会がないと思うのでどちらでも良いのだけど、 セキュリティー以外の利点としてOAuthにすると投稿が『APIで』では無く、任意の文字にすることが出来る。 このように設定次第で出来るのだ。 それでは詳しい方法は続きで。 まず準備をしよう 大きく記事を書いているけど、今回は他の方が作ったプログラムを
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く