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
<?php | |
require 'Services/Amazon/SQS/Queue.php'; | |
define('AMAZON_ACCESS_KEY', your access key); | |
define('AMAZON_SECRET_ACCESSKEY', your secret access key); | |
// queueのURIを指定 | |
define('QUEUE_URL', 'http://queue.amazonaws.com/508403871985/test-queue'); | |
$sqs = new Services_Amazon_SQS_Queue(QUEUE_URL, AMAZON_ACCESS_KEY, AMAZON_SECRET_ACCESSKEY); |
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
<?php | |
$url = "http://d.hatena.ne.jp/i_ogi/atom/blog"; | |
$user_name = "your hatena id"; | |
$password = "your password"; | |
$nonce = md5(mt_rand()); | |
$created = date(DATE_ISO8601); | |
$x_wsse = sprintf('UsernameToken Username="%s", PasswordDigest="%s", Nonce="%s", Created="%s"', | |
$user_name, |
NewerOlder