标签: tumblr

Tumblr开发工具

我想创建Tumblr主题和ineteresting是否有任何IDE(Netbeans,Eclipse,PHPStorm)插件或开发工具?理想的是在浏览器中预览我的主题而不将其上传到Tumblr.谢谢.

ide plugins tumblr

7
推荐指数
2
解决办法
4863
查看次数

Coldfusion Tumblr oAuth挫败感

我意识到这不是什么新鲜事,并且已经有很多关于这个主题的帖子.然而,非与我正在寻找的东西完全相关......所以,它在这里:

我已经回顾了关于这个主题的其他帖子,似乎没有什么对我有用.以下是我正在做的事情的快速摘要:

***我已经这么久了,以至于我忘记了我的位置 - 我刚刚意识到我的oauth_signature现在在我的授权标题中丢失了.我知道它之前有...

顺便说一句 - 我正在使用Harry Klein的CF oauth应用程序(http://oauth.riaforge.org/):

<!--- set up the parameters --->
<cfset sConsumerKey = 'xxx'> <!--- Got these from Tumblr for my app --->
<cfset sConsumerSecret = 'xxx'> <!--- Got these from Tumblr for my app --->     
<cfset OAUTH_VERIFIER = 'xxx' /> <!--- Got these when doing oauth registration with tumblr for account --->
<cfset token = 'xxx' /> <!--- Got these when doing oauth registration with tumblr for account --->
<cfset tokenSecret …
Run Code Online (Sandbox Code Playgroud)

api coldfusion oauth tumblr

7
推荐指数
1
解决办法
1175
查看次数

用户可编辑的HTML XSS保护(tumblr like)

我希望我的服务具有这样的功能:作者可以完全自定义页面,但不能窃取用户的cookie.

Tumblr遇到了一些麻烦,但成功解决了这些问题http://www.riyazwalikar.com/2012/07/stored-persistent-xss-on-tumblr.html

所以我需要解决方案

  1. 没有节制
  2. 完全访问用户 - 作者的页面的html代码,不想要白名单过滤和模板语言(现在它是如何工作的:()
  3. 没有机会偷走对方的饼干(在其他作者的网页上)
  4. 集中认证db
  5. 理想:在每个作者页面上没有身份验证

据我了解tumblr:

  1. 单独的域无法访问彼此的cookie
  2. 用户仍然在每个子域上进行身份验证(HOW ??? www.tumblr.com js可以访问主会话cookie?这样安全吗?)
  3. auth cookies应该是httponly?..

我可以为用户提供安全舒适的解决方案吗?cookie-theft是完全访问html的主要问题吗?

security xss tumblr

7
推荐指数
1
解决办法
740
查看次数

需要在Android中将图像发布到Tumblr博客

我需要将图像发布到Tumblr.我读了这篇http://www.tumblr.com/docs/en/api/v2#auth,我知道我需要获取用户信息才能获得博客名称.我使用了与Twitter验证相同的代码,更改了URL并成功加载了Tumblr webview.我使用以下代码进行身份验证并获取用户信息.

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.List;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.StatusLine;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import com.twitter.imageupload.R;
import com.twitter.imageupload.SecondClass;
import com.twitter.imageupload.TwitterImageUpload;

import oauth.signpost.OAuth;
import oauth.signpost.OAuthConsumer;
import oauth.signpost.OAuthProvider;
import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer;
import oauth.signpost.commonshttp.CommonsHttpOAuthProvider;
import oauth.signpost.http.HttpParameters;
import twitter4j.conf.Configuration;
import twitter4j.conf.ConfigurationBuilder;
import twitter4j.http.AccessToken;
import twitter4j.http.OAuthAuthorization;
import android.app.Activity; …
Run Code Online (Sandbox Code Playgroud)

android tumblr

7
推荐指数
1
解决办法
1886
查看次数

如何使用Tumblr API向Tumblr发布嵌入式视频?

我想使用tumblr api(在收到访问令牌后)代表用户向tumblr发布视频.它适用于youtube/vimeo视频,但不能在提供特定的视频网址时(不实际从头开始上传),例如此视频.我希望我的视频可以在tumblr仪表板上(以及用户的博客中)播放.

我正在使用以下端点:https://api.tumblr.com/v2/blog/myblog.tumblr.com/postHere与这些参数:

params = {'type': 'video', 'caption': 'my cool video post!', 'embed': 'https://d22d7v2y1t140g.cloudfront.net/m_8386091_p64lvWa7cCG7.mov.mp4', 'format': "html"}
Run Code Online (Sandbox Code Playgroud)

如何为其他类型的视频做类似的事情?

python api video tumblr embedded-video

7
推荐指数
1
解决办法
2891
查看次数

为什么即使在api控制台上我也没有在tumblr中未经授权?

这是在示例输出(目标c)中写的:

{"meta":{"status":401,"msg":"未授权"},"回复":[]}

可能是什么问题呢?

tumblr

7
推荐指数
1
解决办法
2039
查看次数

自定义Tumblr的*new*Like Button iFrame {LikeButton}

来自tumblr的新代码{LikeButton}提供了很少的选项:颜色和大小.

它注入一个iFrame,它处理"Like"功能并提供SVG图形.

但是,由于iframe和跨站点脚本策略,不再可以使用css更改它,也不再编辑其内容.

如何修改或插入新代码,以使用我自己的Like按钮sprite或svgs?

css iframe svg cross-site tumblr

7
推荐指数
1
解决办法
2万
查看次数

在Tumblr博客上启用HTTPS支持

我试图解决是否有办法通过HTTPS/SSL链接到Tumblr博客.

当我使用HTTPS 链接到我的博客时,我无法访问它,但它可以在HTTP下运行.

我从2014年2月开始在TechCrunch上发布这篇文章,这表明有一个配置设置可以打开它,但它似乎不再存在.

根据Tumblr的说法,该功能现在已经在测试"周",今天可以在Tumblr的设置中使用.要启用它,用户必须转到他们的Tumblr仪表板的帐户设置,然后切换开关,可以这么说.

ssl https http tumblr insecure-connection

7
推荐指数
2
解决办法
8734
查看次数

Tumblr API:有没有办法获得Tumblr帖子收到的数量?

我正在编写一个应用程序,必须获得PHP中Tumblr帖子的喜欢数量.我正在使用Tumblr PHP库并已成功通过身份验证.我Client::getBlogPosts()用来获取帖子列表.它返回的本质上是一个PHP数组,其信息如下:

{
    "blog_name": "jeteon",
    "id": 92729317211,
    "post_url": "http://jeteon.tumblr.com/post/92729317211/where-to-find-libxm-so-2-for-ubuntu",
    "slug": "where-to-find-libxm-so-2-for-ubuntu",
    "type": "link",
    "date": "2014-07-24 13:43:04 GMT",
    "timestamp": 1406209384,
    "state": "published",
    "format": "html",
    "reblog_key": "oA2WcGac",
    "tags": [
      "dakota",
      "ubuntu"
    ],
    "short_url": "http://tmblr.co/Z9ROeu1MN6HTR",
    "highlighted": [],
    "note_count": 0,
    "title": "Where to find libXm.so.2 for Ubuntu",
    "url": "https://packages.debian.org/wheezy/lesstif2",
    "author": null,
    "excerpt": null,
    "publisher": "packages.debian.org",
    "description": "<p>I recently had to install Dakota (<a href=\"http://dakota.sandia.gov\">http://dakota.sandia.gov</a>) and after considerable trouble with prerequisites, found that the binary install on Ubuntu requires (amonst other …
Run Code Online (Sandbox Code Playgroud)

php tumblr

7
推荐指数
1
解决办法
1777
查看次数

如何告诉tumblr停止更改markdown和/或HTML代码?

tl; dr: tumblr更改了markdown和HTML代码.如果你写入&lt;降价代码并重新加载它,它将被替换为<破坏事物.如果您使用HTML编辑器并放置类似于&mathjax可能需要的东西,它将被替换为&amp;并最终破坏您的表/矩阵.

如何避免这种情况?


我开始使用tumblr而且我补充说

    <!-- Syntax highlighting -->
    <link rel="stylesheet" href="http://yandex.st/highlightjs/7.2/styles/default.min.css">

    <script src="http://yandex.st/highlightjs/7.2/highlight.min.js">
    </script>

    <script>
        hljs.initHighlightingOnLoad();
    </script>

    <!-- Mathjax LaTeX Mode -->
    <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
    </script>
Run Code Online (Sandbox Code Playgroud)

能够使用Mathjax和highlightjs.但问题是,如果我使用tumblr的HTML编辑器并输入:

$$
\left[
  \begin{array}{cc|c}
    1 & 2 & 3<br>
    4 & 5 & 6
  \end{array}
\right]
$$

</p><pre><code>public class Main {
    public static void main(String[] args) {
        System.out.println(”Hello World!”);
    }       
}
</code></pre></p>
Run Code Online (Sandbox Code Playgroud)

tumblr将始终替换不起作用的&with &amp;并导致矩阵呈现不像我预期的那样:

在此输入图像描述

是否有可能让语法高亮和mathjax工作?

另一个问题似乎是:

$$ 
\begin{bmatrix}a & b \\\\\ c …
Run Code Online (Sandbox Code Playgroud)

html markdown tumblr mathjax highlightjs

7
推荐指数
1
解决办法
458
查看次数