I'm trying to use the server-to-server app notification, but I keep getting a 500 read timeout.
I've verified that by base string and signature match what's generated by the OAuth testing tool, and I've bumped up the read timeout to 60 secs.
I'm use perl's Net::OAth, here's my code:
my $request = Net::OAuth->request('consumer')->new(
'consumer_key' => <MyKey>,
'consumer_secret' => <MySecret>,
'request_url' => 'http://api.myspace.com/v1/applications/<AppID>/notifications',
'request_method' => 'POST',
'signature_method' => 'HMAC-SHA1',
'timestamp' => time,
'nonce' => time.'-1',
'version' => '1.0',
'extra_params' => {
'recipients' => <TestUserID>,
'templateParameters' => '{"content":"test1"}',
},
);
$request->sign;
my $ua = LWP::UserAgent->new;
$ua->timeout(60);
my $res = $ua->request(POST $request->to_url);
Is there some kind of outage, or maybe some security setting I'm not aware of?