Rosters lists update PUT Method - Help required


I'm trying the following thing for the past 3days and couldn't able to succeed. 

I'm trying to update the Rosters players position through the API and I'm getting the following error.

Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"

Here are my HTTP headers on my cURL request on the following URL (

Host: fantasysports.yahooapis.com
Accept: */*
Authorization: OAuth realm="yahooapis.com",oauth_version="1.0",oauth_nonce="1464095086",oauth_timestamp="1315146566",oauth_consumer_key="XXXXX",oauth_token="XXXXX",oauth_signature_method="HMAC-SHA1",oauth_signature="XXXXX"
Content-Type: application/xml
Content-Length: 303
Expect: 100-continue

I'm using PUT method on cURL request and here is my cURL opts

  $file = fopen($file_name, 'r');
  $curl_opts = array(CURLOPT_URL => $url,
                     CURLOPT_PORT => $port,
                     CURLOPT_PUT => true,
                     CURLOPT_SSL_VERIFYHOST => false,
                     CURLOPT_SSL_VERIFYPEER => false,
                     CURLOPT_INFILE => $file,
                     CURLOPT_INFILESIZE => filesize($file_name),
                     CURLOPT_RETURNTRANSFER => true,
                     CURLOPT_HTTPHEADER => $headers);

Help much appreciated.

0 Replies

Recent Posts

in Fantasy Sports API