Tag: linkedin

使用Scribe在LinkedIn中发布消息,向LinkedIn发送消息

以下是发送post消息的代码。 在我的屏幕上,我有一个EditText部分,允许用户输入文本,当他们点击后,调用sendMessage函数。 我一直在回应中得到这个。 我也尝试过URLEncode.encode(有效载荷,“UTF-8”)来获取一个编码的字符串,以便添加到正文并且不起作用。 任何见解都会有所帮助。 04-19 18:24:50.570: D/response(693): 04-19 18:24:50.570: D/response(693): 400 04-19 18:24:50.570: D/response(693): 1334859891007 04-19 18:24:50.570: D/response(693): WJPI8VXQME 04-19 18:24:50.570: D/response(693): 0 04-19 18:24:50.570: D/response(693): Couldn’t parse share document: error: Unexpected end of file after null 04-19 18:24:50.570: D/response(693): 这是代码: private static final String SendMessage = “https://api.linkedin.com/v1/people/~/shares”; public void sendMessage(View view) { //Get […]

使用JSoup登录Linkedin

我需要用Jsoup登录Linkedin,最好是。 这是我用来登录其他网站但它不适用于Linkedin。 Connection.Response res = Jsoup .connect(“https://www.linkedin.com/uas/login?goback=&trk=hb_signin”) .data(“session_key”, mail, “session_password”, password) .method(Connection.Method.POST) .timeout(60000). // Also tried “https://www.linkedin.com/uas/login-submit” Map loginCookies = res.cookies(); //Checking a profile to see if it was succesful or if it returns the login page. Document currentPage = Jsoup.connect(someProfileLink).cookies(loginCookies).timeout(10000). System.out.println(“” + currentPage.text()); 我究竟做错了什么? 我需要能够通过使用网络爬虫来获取用户配置文件,但无论我尝试什么,我都无法获得登录cookie。

使用用户名和密码登录LinkedIn失败

LinkedIn使用oauth登录到它的api.There无法登录到服务器中的api。我试图使用http请求登录到linkedin并获取oauth_verifier ,但我得到了这样的响应 很抱歉,您的申请存在问题。 请确保您已启用Cookie,然后重试。 或者点击此链接返回主页。 我已多次分析浏览器和服务器之间的通信,但仍无法找到原因 public boolean Login(String user, String pass, String url) { try { DefaultHttpClient httpclient; HttpParams params = new BasicHttpParams(); ConnManagerParams.setMaxTotalConnections(params, 100); HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1); // Create and initialize scheme registry SchemeRegistry schemeRegistry = new SchemeRegistry(); schemeRegistry.register(new Scheme(“http”, PlainSocketFactory.getSocketFactory(), 80)); schemeRegistry.register(new Scheme(“https”, SSLSocketFactory.getSocketFactory(), 443)); // Create an HttpClient with the ThreadSafeClientConnManager. // […]

使用Java进行LinkedIn API身份validation

我是Linked In API的新手,用于身份validation。 我去了LinkedIn提供的API文档。 它有RUBY,PYTHON和PHP的样本。 但我被要求使用Java实现相同的目标。 我需要阅读链接的用户的个人资料。任何人都可以建议我在Java中使用相同的链接或示例。

无法从Android授权LinkedIn应用程序

我正在尝试授权LinkedIn应用程序将状态从我的Android应用程序发布到linkedin。 但是当我点击授权时,我的网页浏览中没有任何内容。 这是我的OwnAuthLinkPage.java: public class OwnOuthLinkPage extends Activity implements SoapClient { /** Called when the activity is first created. */ Button b; WebView wb; String ftoken,verifire,outh_token,verifire2,requesttokensecret,urlM,OuthT; CookieManager cookieManager ; public static SharedPreferences prefs; public static Editor e; private static final String API_KEY = “API_KEY_HERE”; //This is the private api key of our application private static […]

要通过Intent分享到LinkedIn的类名

我目前正在为Android应用中的一些流行平台创建直接意图以共享一些文本。 我目前正试图与LinkedIn合作。 我目前有直接的意图为Twitter工作,如下所示: shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setClassName(“com.twitter.android”, “com.twitter.android.PostActivity”); shareIntent.setType(“text/*”); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, text); startActivityForResult(shareIntent, 9); 我现在需要的是LinkedIn的相同内容。 到目前为止,我知道在互联网上搜索后LinkedIn的基本包。 这是“com.linkedin.android”(如果这是错误请纠正我)。 但是,我缺少的关键部分是处理LinkedIn应用程序中共享的类的名称。 即com.linkedin.android。?.