To access the slideshare.net api you will need api key and secret that slideshare provided to you and username and password of slideshare account.
ts: Current time in Unix Timestamp format
hash: Create a SHA1 combination of secret and timestamp. For example: SHA1 (secret + timestamp)
Api base url: https://www.slideshare.net/api/2/
Method to get user data: get_user_leads
Check Complete Code to Get User Data from Slideshare.net Api:
[sociallocker id=”1175″]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<?php $host = "https://www.slideshare.net/api/2/get_user_leads"; $ts = time(); $hash = sha1("****SECRET***".$ts); $params = array( "api_key"=>"****API_KEY***", "ts"=>$ts, "hash"=>$hash, "slideshow_url"=>"https://www.slideshare.net/api/2/", "username"=>"Username", "password"=>"Password", "begin"=>"Begin date", "end"=>"End date" ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); $reply = curl_exec($ch); $replyArray = curl_getinfo($ch); curl_close($ch); echo $reply; $result = simplexml_load_string($reply); echo "<pre>"; print_r($result); ?> |
[/sociallocker]
It’s really a cool and helpful piece of information. I’m happy that you shared this helpful info with
us. Please stay us up to date like this. Thank you for
sharing.
Thanks for shiganr. What a pleasure to read!