tumblr

Jumblr API gives bad request while posting image to Tumblr

亡梦爱人 提交于 2019-12-10 15:27:31
问题 What I have I have an image File object trying to post to Tumblr using Jumblr API My problem When I try to post the image I get com.tumblr.jumblr.exceptions.JumblrException: Bad Request Response code :400 My code client = new JumblrClient(CONSUMER_KEY,SECRET_KEY); client.setToken(TOKEN, TOKEN_SECRET); User user=client.user(); userName=user.getName(); PhotoPost photoPost=client.newPost(client.user().getBlogs().get(0).getName(),PhotoPost.class); photoPost.setCaption("My Tumblr post"); photoPost

How to use high resolution photos in text posts in Tumblr?

依然范特西╮ 提交于 2019-12-10 11:04:46
问题 I'm trying to use high resolution in Tumblr Text posts. When I upload a photo into a Text post, Tumblr resizes it to 500px Image Displayed: <img src="http://41.media.tumblr.com/d8ceea903cb5cd667e416877bf4a8a70/tumblr_inline_nxihvl2VdX1r5y5rv_500.jpg" alt="image" data-orig-width="2640" data-orig-height="3960" width="500" height="750"> If I change 500 to the data-orig-width value doesn't give me the original image, but I just want a 1280 image. If I change 500 to 1280, it gives me a 1280 image

Share a link on Tumblr from iOS app

你离开我真会死。 提交于 2019-12-10 10:40:22
问题 I've been googling around to find a way to share a link in tumbler... I just found sharekit to do this, and I really don't like it... What other options do you think I have for this? I can't believe there are no libraries to achieve this in a relatively easy way... Any idea? Thanks! 回答1: Just found this! TMTumblrSDK It works fine! To make a text post you just have to: NSDictionary *parameters = [[NSDictionary alloc] initWithObjectsAndKeys: @"Titulo",@"title", @"Este es el body",@"body",nil];

Uploading Image to tumblr using OAuthConsumer for iOS

时光毁灭记忆、已成空白 提交于 2019-12-10 09:47:08
问题 I'm using the OAuthConsumer in my iOS application which makes use of the Tumblr API. Making API-Calls in general works fine. However, I struggle to upload any media. When all the parameters of my requests are ints or strings, I add them just like that: [request setParameters:[NSArray arrayWithObjects: [OARequestParameter requestParameterWithName:@"x_auth_username" value:username], [OARequestParameter requestParameterWithName:@"x_auth_password" value:password], nil]]; That obviously won't work

how to load all notes on tumblr?

青春壹個敷衍的年華 提交于 2019-12-10 09:32: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

Print more than 20 posts from Tumblr API

时光怂恿深爱的人放手 提交于 2019-12-09 17:50:16
问题 Good afternoon, I'm very new to Python, but I'm trying to write a code which will allow me to download all of the posts (including the "notes") from a specified Tumblr account to my computer. Given my inexperience with coding, I was trying to find a pre-made script which would allow me to do this. I found several brilliant scripts on GitHub, but none of them actually return the notes from Tumblr posts (as far as I can see, although please do correct me if anyone knows of one that does!).

edit css style of an element with a space in its class name

时光怂恿深爱的人放手 提交于 2019-12-09 05:22:58
问题 I'm creating a tumblr them and I have to write an external CSS file but I am having trouble editing the css style of the post elements. This its structure: <li class="post quote"> {other code} </li> The problem is that the class name has a space in it. How would I create a CSS class to access this? And yes, I know I can just put a style attribute in the element tag but I was kind of hoping for another option. 回答1: The problem is that the class name has a space in it. This is not possible in

Tumblr: How to get Pinterest Widget to extract images of a photoset in Blog Post and Index Page

安稳与你 提交于 2019-12-08 21:06:40
I would like to get the Pin It button to work on photosets: so when the pin it button is clicked, users can select an image from all the images from a photoset to pin. I am using the code provided by Pinterest widget generator and adding in tumblr variables as follows: <a href="//www.pinterest.com/pin/create/button/?url={URLEncodedPermalink}" data-pin-do="buttonBookmark" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a> But when clicked it says "Sorry, couldn't find any pinnable things on this page." (You can see an example here: http://blog.kazoova.com/post

Change default photoset size on tumblr

自古美人都是妖i 提交于 2019-12-08 20:12:49
I know tumblr has the defualt photoset sizes {photoset-500},{photoset-400},{photoset-250}, but I want to change the width, so that the width could be either 420, or 350. i have looked everywhere and cannot find a code to help me do this. You can use {Photoset} which just resizes the photoset to fit the container (max size 700px). https://www.tumblr.com/docs/en/custom_themes You cannot change default sizes of images with Tumblr markup, but you can visually change size with CSS . Tumblr markup: {block:Photoset} {block:Photos} <img src="{PhotoURL-500}" class="photoset-img" /> {/block:Photos} {

How can I load the content of tumblr nextPage on indexPage

喜欢而已 提交于 2019-12-08 14:54:23
问题 I'm developing a tumblr theme for my personal portfolio, but I'm encountering a serious problem in my work section, I want to create an horizontal slider effect, when I click next to see older posts, like this: http://tympanus.net/Tutorials/WebsiteScrolling/ I have this to define my nextPage, #section4 is where I have the posts of my work: <!-- Next Page --> {block:NextPage} <div> <a id="next-button" href="{NextPage}#section4" class="next panel" style="position:relative; top:630px; left