我想在 php(CodeIgniter)中创建一个允许管理我的Linkedin帐户的本地应用程序。
我安装了这个库: Happyr Linkedin Api Client
我遵循了相同的说明,但在成功登录后重定向时出现错误消息。
from scipy import stats
def rsquared(x, y):
""" Return R^2 where x and y are array-like."""
slope, intercept, r_value, p_value, std_err = scipy.stats.linregress(x, y)
return r_value**2
for i in range(len(uniq)):
plt.subplot(6,6,i+1)
indx = dat['year'] == uniq[i]
plt.scatter(x[indx], y[indx], s=15, color=scalarMap.to_rgba(i), label=uniq[i])
plt.legend(prop={'size':5})
plt.xticks(size = 10)
plt.yticks(size = 10)
m, b = np.polyfit(x[indx], y[indx], 1)
plt.plot(x, m*x + b, '-')
slope, intercept, r_value, p_value, std_err = scipy.stats.linregress(x[indx], y[indx])
print("r-squared:", r_value**2)
当我对128行进行评论时,我收到了另一个错误:
Type: Happyr \ LinkedIn \ Exception \ LinkedInException
Message: Could not get access token: The user may have revoked the authorization response from LinkedIn.com was empty.
Filename: C: \ wamp \ www \ linkedin \ vendor \ happyr \ linkedin-api-client \ src \ Authenticator.php
Line Number: 128
请帮我解决这个问题。 谢谢:))