Twitter api text field value is truncated

The Twitter API has been changed recently, to support new rules regarding the 280 characters limit. To get the full text of the tweet, add parameter tweet_mode with value extended to your request parameters. Field text in the JSON response has been replaced by full_text More info here: https://dev.twitter.com/overview/api/upcoming-changes-to-tweets

Set timeout for HTTPClient get() request

There are two different ways to configure this behavior in Dart Set a per request timeout You can set a timeout on any Future using the Future.timeout method. This will short-circuit after the given duration has elapsed by throwing a TimeoutException. try { final request = await client.get(…); final response = await request.close() .timeout(const Duration(seconds: … Read more

Travel/Hotel API’s? [closed]

In my search for hotel APIs I have found only one API giving unrestricted open access to their hotel database and allowing you to book their hotels: Expedia’s EAN http://developer.ean.com/ You need to sign for their affiliate program, which is very easy. You get immediate access to their hotel databases plus you can make availability/booking … Read more

How to post in Google+ wall

Well, Google+ doesn’t have a “wall,” it has “Streams.” The proper term might help you find better search results. Either way, unless you’re a Google partner, the news isn’t good: The API is currently limited to read-only access. From the API website: Note: The Google+ API currently provides read-only access to public data. All API … Read more

How to make a custom LinkedIn share button

Official LinkedIn API for sharing: https://developer.linkedin.com/docs/share-on-linkedin Read Terms of Use! Example link using “Customized URL” method: http://www.linkedin.com/shareArticle?mini=true&url=https://stackoverflow.com/questions/10713542/how-to-make-custom-linkedin-share-button/10737122&title=How%20to%20make%20custom%20linkedin%20share%20button&summary=some%20summary%20if%20you%20want&source=stackoverflow.com You just need to open it in popup using JavaScript or load it to iframe. Simple and works – that’s what I was looking for! EDIT: Video attached to a post: I checked that you can’t really embed … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)