tumblr

How do I get the access_token from tumblr's official php client?

北战南征 提交于 2019-12-06 05:28:16
I've followed the directions posted in this stackoverflow question , but I am stuck. I am using tumblr/tumblr.php from Github (the official "PHP client for the tumblr API"). I am also following directions here (which are actually for twitter), but those directions aren't tailored for the git library I am using. I have a valid consumer key and secret. From those I make a request and get oauth_token and oauth_token_secret like so: $client = new Tumblr\API\Client($consumerKey,$consumerSecret); $client->getRequestHandler()->setBaseUrl('https://www.tumblr.com/'); $req = $client->getRequestHandler()

Tumblr API get current AVATAR URL

对着背影说爱祢 提交于 2019-12-06 05:26:40
问题 Everyone knows? about avatar url in tumblr api / read / json? like for example the facebook? http://graph.facebook.com/[your facebook id]/picture?type=normal <?php $tumblog = 'natadec0c0'; // change to your username // if your Tumblog is self hosted, you need to change the base url to the location of your tumblog $baseurl = 'http://' . $tumblog . '.tumblr.com'; $request = $baseurl . '/api/read/json'; $ci = curl_init($request); curl_setopt($ci,CURLOPT_RETURNTRANSFER, TRUE); $input = curl_exec(

Start GIF On Mouse Hover and Pause Otherwise?

吃可爱长大的小学妹 提交于 2019-12-06 04:26:53
问题 So I'm trying to have these images on the sidebar of a page I'm building that are static but when you mouseover they animate as gifs. My current setup is to have the background-image css property image be a static jpg normally but change to an animated gif on mouseover. Here's the code, to illustrate my point better. CSS: #segments li a.fnb { background-image: url(http://dl.dropbox.com/u/8808984/2.0/SegmentThumbs/fnb%21-small.jpg); /*fallback*/ } #segments li a.whhu { background-image: url

Tumblr API V2 Error code 429: “Rate Limit Exceeded” You are being rate limited, slow down. Header info?

一个人想着一个人 提交于 2019-12-06 04:20:49
I tested Tumblr API with PHP, then I try to follow with friends using API and worked successfully, then later I get this error: Error 429 "Rate Limit Exceeded" I heard I need to wait 1 hour and limits will gone. Also I see a few information about headers: x_ratelimit_api_followers_limit x_ratelimit_api_followers_remaining x_ratelimit_api_followers_reset This informations can be in header. What header? Oauth? I don't found that. How can I see this variables? How can I get more information about API follower limitations? Tumblr's API documentation not contain that. Stephan Answer provided by

Jquery Ajax - Tumblr API v2

跟風遠走 提交于 2019-12-06 03:25:54
I'm trying to delve into the depths of the murky world of Tumblr, and can't understand how to get over the following error: Uncaught SyntaxError: Unexpected token : I believe it may be because I'm getting back json, but trying to use jsonp. Here's what I'm trying to send: $(function(){ $.ajax({ type: "GET", url : "http://api.tumblr.com/v2/blog/MyTumblrName.tumblr.com/info", dataType: "jsonp", data: { api_key : "MyTumblrApi" }, success: function(data){ console.log(data); }, }); }); I get a 200 OK response, and the data but still the above error (which I don't understand and would like to know

Facebook Open Graph Protocol on Tumblr

偶尔善良 提交于 2019-12-06 02:48:05
When a link from my Tumblr blog is posted on Facebook, Facebook grabs the title between the title tags and not the one specified in the Open Graph meta tags. Why is it doing this? Is there any way to fix it? Without seeing the code, I'm not sure what you're problem is exactly, but for anyone else searching for this looking for how to set up Open Graph on their blog, try doing something like this: <!-- FACEBOOK OPEN GRAPH --> <!-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>--> <meta property="og:site_name" content="{Title}"/> {block:PermalinkPage} <meta property="og:url" content="{Permalink}

Need to post an image to Tumblr blog in android

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 22:33:20
问题 I need to post a image to Tumblr. I read this http://www.tumblr.com/docs/en/api/v2#auth and I come to know I need to get the user info in order to get the blog name. I used the same code I used for Twitter authetication, changed the URLs and get successfully loaded the Tumblr webview. I used the following code to authenticate and to obtain the users info. import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io

Float: center doesn't work?

怎甘沉沦 提交于 2019-12-05 20:28:47
I'm doing my first Tumblr theme using a tutorial, I'm a total newbie at this. .metadata a { display: inline-block; float: center; margin-left: 2%; } I want the posts to be centered, but the only things that work are float: left and float: right What should I do ? Please explain clearly because as I said, I'm a total newbie, and I'm not a native English speaker. You can only float left or right, so float is not an option here. Add text-align: center to the parent element of the a-tag. That will center not only text, but also other inline and inline-block elements, like yours. Another way to

Loss of data when extracting frames from GIF to PNG?

▼魔方 西西 提交于 2019-12-05 18:48:35
When I try to use fraxel's answer on http://stackoverflow.com/questions/10269099/pil-convert-gif-frames-to-jpg on the image http://24.media.tumblr.com/fffcc2d8e980fbba4f87d51ed4916b87/tumblr_mh8uaqMo2I1rkp3avo2_250.gif I get ok data for some, but then for some I get missing data it looks like, e.g. Correct Missing To display these I use imagemagick's display foo* and then use space to move through the images ... is it possible imagemagick is reading them wrong? Edit: Even when using convert and then displaying via display foo* I get the following Could this be a characteristic of the gif then?

how to load all notes on tumblr?

青春壹個敷衍的年華 提交于 2019-12-05 18:15:41
i made a giveaway but im having a problem to view the notes. there is no "load more notes" at the bottom. other posts are okay, but i'm not sure why my giveaway post (ONLY THAT POST) won't load all the notes. i googled and found this --> How can I see all notes of a Tumblr post from Python? one of the answers for the question made a new page with only the notes. (the one by user unor). i think the user used python or something but im not sure what is that and i tried changing my url to the one mentioned in the answer but nothing works. :( there's even wget command could download all notes