carlesbarreda / bitly Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/bitly
License: GNU General Public License v3.0
Automatically exported from code.google.com/p/bitly
License: GNU General Public License v3.0
What steps will reproduce the problem?
1. use the plugin via jquery as instructed with current api
What is the expected output? What do you see instead?
shorten the text area urls.
instead i see 500 error
What version of the product are you using? On what operating system?
latest latest
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 May 2013 at 4:46
Dear ruslanas,
Thanks for Bitly JS API!
It would be great to have a clean JS version of the library for use in
different environments/backends.
Thanks again!
Original issue reported on code.google.com by [email protected]
on 7 Oct 2012 at 4:44
Need to implement caching both on server and client side to reduce load and
delay.
Original issue reported on code.google.com by ruslanas.com
on 11 Feb 2009 at 8:19
Index: D:/web/www/beta.nashkiev/includes/lib/bit.ly/bitly.class.php
===================================================================
--- D:/web/www/beta.nashkiev/includes/lib/bit.ly/bitly.class.php (revision
1454)
+++ D:/web/www/beta.nashkiev/includes/lib/bit.ly/bitly.class.php (working copy)
@@ -125,7 +125,25 @@
$response = curl_exec($ch);
- curl_close($ch);
+ curl_close($ch);
+
+ if (empty($response)){
+ throw new Exception('bit.ly: No response');
+ }
+ $result = @json_decode($response);
+ if (!$result) {
+ throw new Exception('bit.ly: Wrong response');
+ }
+ if (empty($result->statusCode) || $result->statusCode != 'OK') {
+ $error = 'bit.ly: Error ';
+ if (!empty($result->errorCode)) {
+ $error .= $result->errorCode;
+ }
+ if (!empty($result->errorMessage)) {
+ $error .= ' ' . $result->errorMessage;
+ }
+ throw new Exception($error);
+ }
return $response;
}
Original issue reported on code.google.com by [email protected]
on 5 Mar 2010 at 11:37
What steps will reproduce the problem?
1. Open example.html
2. Press Shorten
Message is not shortened.
Original issue reported on code.google.com by ruslanas.com
on 30 Jan 2009 at 7:46
Hi,
I came across your script via bit.ly forum, having recently signed up with
bit.ly pro. Is it possible to utilize your script with my own domain that
is being used through bit.ly pro? If so, how can I make that happen?
Thanks!
Original issue reported on code.google.com by [email protected]
on 5 May 2010 at 5:28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.