标签: yahoo

寻找Oauth Yahoo样本C#

我知道有很多库dotnetopenauth,oauthbase等.但我需要与雅虎一起使用的样本.样品,我发现对我不起作用.也许你有例子.请分享:-)我发现bug OauthBase对我来说很好:-)

c# asp.net yahoo oauth dotnetopenauth

6
推荐指数
1
解决办法
5678
查看次数

phpmailer,php,标题,电子邮件转到垃圾邮件

我在从系统发送电子邮件时遇到问题,问题是电子邮件被发送到gmail/yahoo/hotmail中的垃圾邮箱.我在做了一些功课后发布了这里,并且已经验证并检查了SPF设置,反向DNS设置(指向其他地方,并在今天早上约5小时前进行了更改).RDNS检查现在说映射是完美的.但没有运气.邮件将去spambox.可能是什么问题呢?

背景:我使用PHP与PHPMailer发送电子邮件.

来自垃圾邮件箱中收到的邮件的标题:

Delivered-To: ajithsubramanian@gmail.com
Received: by 10.227.144.12 with SMTP id x12cs63931wbu;
    Mon, 9 May 2011 17:05:44 -0700 (PDT)
Received: by 10.68.64.225 with SMTP id r1mr11349194pbs.250.1304985942785;
    Mon, 09 May 2011 17:05:42 -0700 (PDT)
Return-Path: <info@xpal.com>
Received: from xpal.com (208.78.241.38.svwh.net [208.78.241.38])
    by mx.google.com with ESMTPS id w1si21200467pbh.199.2011.05.09.17.05.40
    (version=TLSv1/SSLv3 cipher=OTHER);
    Mon, 09 May 2011 17:05:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of info@xpal.com designates 208.78.241.38 as permitted sender) client-ip=208.78.241.38;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of info@xpal.com designates 208.78.241.38 as permitted sender) smtp.mail=info@xpal.com …
Run Code Online (Sandbox Code Playgroud)

php yahoo gmail spam phpmailer

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

为什么来自Yahoo Social SDK for PHP的示例代码总是为会话变量返回NULL?

我试图从Yahoo Social SDK for PHP页面获取示例代码,但没有运气.

这是该网站的代码段:

<?php  
  require("Yahoo.inc");  

  // Your Consumer Key (API Key) goes here.  
  define('CONSUMER_KEY', "");  

  // Your Consumer Secret goes here.  
  define('CONSUMER_SECRET', "");  

  // Your application ID goes here.  
  define('APPID', "");  

  $session = YahooSession::requireSession(CONSUMER_KEY,CONSUMER_SECRET,APPID);  
?>  
Run Code Online (Sandbox Code Playgroud)

我设置了CONSUMER_KEY,CONSUMER_SECRETAPPID.$session variable总是为NULL.

在挖掘了yahoo.inc源代码之后,我将问题追溯到这个函数:

function getRequestToken($consumerKey, $consumerSecret, $callback);
Run Code Online (Sandbox Code Playgroud)

特别是在函数中的这个调用:

$response = $client->post($request_url, "application/x-www-form-urlencoded", $parameters);
$request_url: https://api.login.yahoo.com/oauth/v2/get_request_token
$parameters: has my callback url

$response变量null!我认为这是问题的根源.我按原样使用示例代码.所以,我不确定为什么会这样.

有任何想法吗 ??我错过了什么?

php api social yahoo sdk

6
推荐指数
1
解决办法
1403
查看次数

使用PHP解析JSON结果 - Yahoo Search API

我能够使用我的API密钥从yahoo检索结果,使用yahoo开发者网站上的说明.http://developer.yahoo.com/boss/search/boss_api_guide/codeexamples.html#

码:

if ($_POST['query'])
{
$newline="<br />";
$query = urlencode("'{$_POST['query']}'");

require("OAuth.php");

$cc_key  = "key goes here";
$cc_secret = "secret goes here";
$url = "http://yboss.yahooapis.com/ysearch/web";
$args = array();
$args["q"] = "$query";
$args["format"] = "json";

$consumer = new OAuthConsumer($cc_key, $cc_secret);
$request = OAuthRequest::from_consumer_and_token($consumer, NULL,"GET", $url, $args);
$request->sign_request(new OAuthSignatureMethod_HMAC_SHA1(), $consumer, NULL);
$url = sprintf("%s?%s", $url, OAuthUtil::build_http_query($args));
$ch = curl_init();
$headers = array($request->to_header());
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
$rsp = curl_exec($ch);
$results = json_decode($rsp); 

print_r($results);

}
Run Code Online (Sandbox Code Playgroud)

使用如上所示的print_r($ results),我得到结果,例如以下(搜索" …

php api yahoo json

6
推荐指数
1
解决办法
3055
查看次数

雅虎将高度转换为最小高度

我刚刚偶然发现雅虎邮件正在将所有高度属性转换为最小高度。有解决方法吗?

<div style="width:55px; height:55px; overflow:hidden;">
   <img alt="user pic" src="assets/main.jpeg" width="55px" />
</div>
Run Code Online (Sandbox Code Playgroud)

上面代码的目标是隐藏图像的底部,如果它高于 55px。我已经在 hotmail 和 aol 中测试过这个,它工作正常。只有雅虎似乎将我的身高转换为 min-height:

<div style="width:55px; min-height:55px; overflow:hidden;">
Run Code Online (Sandbox Code Playgroud)

html css yahoo height

6
推荐指数
1
解决办法
2213
查看次数

401未经授权使用Yahoo OAuth

我的下面的代码每次返回401 Unauthorized错误:

HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://query.yahooapis.com/v1/yql?q=select%20fields.value%20from%20social.contacts%20where%20guid%3Dme&diagnostics=false");
request.Headers.Add(
    "Authorization: OAuth " +
    "realm=\"" + "yahooapis.com" + "\"," +
    "oauth_consumer_key=\"" + ConfigurationManager.AppSettings["yahoo_oauth_consumer_key"] + "\"," +
    "oauth_nonce=\"" + Guid.NewGuid().ToString() + "\"," +
    "oauth_signature_method=\"" + "PLAINTEXT" + "\"," +
    "oauth_timestamp=\"" + ((DateTime.UtcNow.Ticks - new DateTime(1970, 1, 1).Ticks) / (1000 * 10000)).ToString() + "\"," +
    "oauth_token=\"" + accessToken.TokenValue + "\"," +
    "oauth_version=\"1.0" + "\"," +
    "oauth_signature=\"" + ConfigurationManager.AppSettings["yahoo_oauth_signature"] + "%26" + "\""
);
StreamReader streamReader = new StreamReader(request.GetResponse().GetResponseStream(), true);
Run Code Online (Sandbox Code Playgroud)

当我每次进入代码时,我看到所有信息都是雅虎请求在标题中,但每次我得到这个401.

c# yahoo oauth

5
推荐指数
1
解决办法
6066
查看次数

登录用户的电子邮件ID yahoo oauth php

我创建了一个允许用户使用他们的Yahoo凭据登录的应用程序,我能够检索一些信息,如昵称和guid,但我无法检索登录用户的电子邮件ID.

我已经允许阅读联系人,邮件,状态apis到我的雅虎应用程序.

我正在使用Yahoo PHP SDK.

有人可以指出我在这里缺少的东西.

php yahoo oauth

5
推荐指数
1
解决办法
2942
查看次数

无法在php中阅读yahoo xml feed

我试图在PHP中使用xml函数阅读雅虎rss(http://news.yahoo.com/rss/us)

这是我非常简单的代码:

 $xml = simplexml_load_file('xml.xml');
 var_dump($xml['channel']);
Run Code Online (Sandbox Code Playgroud)

但我显示NULL:

adam@cka: php test.php
NULL
Run Code Online (Sandbox Code Playgroud)

我的XML坏了吗?或者有一个更好的功能在PHP中读取xml文件?

我可以看到elment存在于XML文件中,我在我的计算机中正确下载了文件.

php xml yahoo

5
推荐指数
1
解决办法
779
查看次数

使用单个http请求加载多个CSS文件

当我查看雅虎邮件的源代码时,我在link标签中看到多个使用&符号的css文件,如下所示:

href="http://mail.yimg.com/zz/combo?kx/ucs/uh/css/271/yunivhead-min.css&kx/ucs/uh/css/221/logo-min.css&kx/ucs/avatar/css/17/avatar-min.css"
Run Code Online (Sandbox Code Playgroud)

有谁知道,他们如何分离每个文件并使用单个http请求加载它们?

css yahoo http

5
推荐指数
1
解决办法
556
查看次数

Python中滚动关联数据框的滚动平均值?

Python初学者在这里.

到目前为止我做了什么:

  • 雅虎财经从股票列表中导入的价格数据.

  • 在股票(每个组合)之间,将20天滚动相关性计算为数据帧.

我想要:

1)计算20天滚动相关性中的每一天的200天简单移动平均值.

2)以矩阵形式报告200天移动平均线结果.

如何在python/pandas中执行此操作?谢谢,这对我有帮助!


这是我到目前为止所拥有的......

import pandas as pd
from pandas import DataFrame
import datetime
import pandas.io.data as web
from pandas.io.data import DataReader

stocks = ['spy', 'gld', 'uso']
start = datetime.datetime(2014,1,1)
end = datetime.datetime(2015,1,1)

f = web.DataReader(stocks, 'yahoo', start, end)
adj_close_df = f['Adj Close']

correls = pd.rolling_corr(adj_close_df, 20)

means = pd.rolling_mean(correls, 200) #<---- I get an error message here!
Run Code Online (Sandbox Code Playgroud)

python yahoo matrix correlation pandas

5
推荐指数
1
解决办法
2387
查看次数

标签 统计

yahoo ×10

php ×5

oauth ×3

api ×2

c# ×2

css ×2

asp.net ×1

correlation ×1

dotnetopenauth ×1

gmail ×1

height ×1

html ×1

http ×1

json ×1

matrix ×1

pandas ×1

phpmailer ×1

python ×1

sdk ×1

social ×1

spam ×1

xml ×1