How do I download a file or photo that was sent to my Telegram bot?

This is now available! https://core.telegram.org/bots/api#getfile Hooray! It was added on Sep 18th (2015): https://core.telegram.org/bots/api Usage: In the JSON of the message you will receive a file_id as before. An example of a message object with a voice file: { message_id: 2675, from: { id: 10000001, first_name: ‘john’, username: ‘john’ }, chat: { id: 10000001, first_name: … Read more

Is this Rails JSON authentication API (using Devise) secure?

You don’t want to disable CSRF, I have read that people think it doesn’t apply to JSON APIs for some reason, but this is a misunderstanding. To keep it enabled, you want to make a few changes: on there server side add a after_filter to your sessions controller: after_filter :set_csrf_header, only: [:new, :create] protected def … Read more

Is there a movie showtime api? [closed]

when “allow_url_fopen” is disabled then use <?php /** * Google Showtime grabber * * This file will grab the last showtimes of theatres nearby your zipcode. * Please make the URL your own! You can also add parameters to this URL: * &date=0|1|2|3 => today|1 day|2 days|etc.. * &start=10 gets the second page etc… * … Read more

UEFA/FIFA scores API [closed]

UEFA or FIFA don’t seem to provide any API to get the information you want. However, there are some third-party services which support that: OPTA – Both commercial and free. They have incredible database about matches. Whoscored.com currently uses it. Others: livescoreboards, xmlsoccer, …

Is there a developers api for craigslist.org [closed]

Ultimately no. You can query for listings with a search string from an RSS feed such as this: http://YOURCITY.craigslist.org/search/sss?format=rss&query=SearchString As far as posting, craiglist has not opened their API. However, this SO Question may shed some light and a possible solution – although not a very reliable one. Craigslist Automated Posting API? Write a note … Read more

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