Skip to content
Browse files

Merge pull request #8 from davedg629/master

Add a status code to the results of the bitly_v3_shorten function
  • Loading branch information...
2 parents 3968eee + 3c55404 commit 88681d1376d004eb380aef335097f8bd26498255 @Falicon committed Nov 17, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 bitly.php
View
1 bitly.php
@@ -93,6 +93,7 @@ function bitly_v3_shorten($longUrl, $domain = '', $x_login = '', $x_apiKey = '')
$result['long_url'] = $output->{'data'}->{'long_url'};
$result['new_hash'] = $output->{'data'}->{'new_hash'};
}
+ $result['status_code'] = $output->status_code;
return $result;
}

0 comments on commit 88681d1

Please sign in to comment.
Something went wrong with that request. Please try again.