is it possible to tweet by sending an HTTP post request from our app. If so, can anyone tell how is that done.
As #Marc B suggests, if you check out the Twitter API documentation, you will find that publishing a tweet via POST is achievable by sending a request to "https://api.twitter.com/1/statuses/update.json" with the parameters outlined in the API docs.
Do you have a unique question regarding your application? You may wish to edit your question to provide a detailed description of your specific situation so that we can be more helpful.
Related
I am trying to send information from my Android device to my php server. I followed this tutorial (http://www.codeofaninja.com/2013/04/android-http-client.html), but then realized there is nowhere to specify my useID and password to log into the server. a lot of search but could not get anywhere. I am new to both Android and Apache. Please advice, thanks.
well, i have to learn to ask the right question or enter the right words to search. i finally found with this post and got my answer.
Android HttpClient authentication always returns 401 code
I am trying to implement a Sample application in Android which gets the malware and phishing list from safe Browsing API and checks the authenticity of URL, this is client side method, but I am constantly getting 400 (Bad Request) as response code when I am trying to hit the URL.
Searched throughout the internet but couldn't get any sample working code.
Even on Developer's Guide page https://developers.google.com/safe-browsing/developers_guide_v2 it is not mentioned how to send the list name correctly in POST request for downloading or updating.
Please help me by providing the correct procedure of how to send list name (if code snippet can be posted, it would be great as I am new to Android.)
Check out that request should end with '\n'. It is common to ignore this. I hope it helps.
I have an app fb page and would like to be able to post messages on it. I am currently able to get my android code to post a msg to my own wall but I want to be able to post to my app page also.
Is this possible?
Do you have to be a member of the page also?
thanks
In the documentation (http://developers.facebook.com/docs/reference/api/page/#feed) it says:
feed
This connection corresponds to the Page's Wall. You can create a link,
post or status message by issuing an HTTP POST request to the
PAGE_ID/feed connection. To see more details please see links, posts,
and status messages documentation.
This official blog post (http://developers.facebook.com/blog/post/465/) shows how to do so with php, and a normal post request using curl, you can use that to create a java code for android.
I have an application that is going to post on the wall with the method FEEd but I would like to link a name to a specific page.
I found that if I put this code: #[116380291722462:1:TicinoCinema] in this url: http://www.facebook.com/connect/prompt_feed. It's work but If I do this by Facebook api it's dosen't work
Method: String response = facebook.request("feed", params, "POST");
Param: params.putString("message", Utils.getTextCheckIn(location, "#[116380291722462:1:TicinoCinema]"));
What is the problem? When I am going to do this post I can't see the name TICINOCINEMA but the rest I can see, the api just remove my "tag" and post the message.
There is any other way to do that?
Unfortunately, the tagging in wall post is currently not supported via the feed dialog or other APIs. Please follow our developers blog to stay tuned on new API launches and updates.
I am new to android. I am creating an application in which user authentication is needed, but to authorize application user needs to login first. After that the data can be received. I just wanna know is there any procedure to login to a remote website if there is no login api available for that.
i am waiting for the reply.
Thanks,
Arun
May be you can talk to your website with a REST interface ? I dont know. but may be you can try to use kind of HttpClient objects to dialog with the website. You can use HttpGet to make a request via the GET_METHOD. There are other method to use. Well, if you seach a bit on the web about these objects/method you should see some examples. Hope its help you.
Use HTTPClient to do this, it gives you access to cookies and caching mechanisms, so it's all you need to implement this.