I am using Twitter API and Flex 4 for creating Desktop App. I need to show tweets in two parts:
1)Tweets of User ABC to be shown in one section.
2)The tweets of people whom the User ABC is following, to be shown in another section.
I achieved point 1 by using :
https://api.twitter.com/1/statuses/user_timeline.xml?&screen_name="+ usrObj.username + "&count=" + usrObj.count;
But getting Bad Authentication Error while trying for point no.2.
I am hitting the following URL using HTTPSERVICE:
https://api.twitter.com/1.1/statuses/home_timeline.json
Also, I used:
https://api.twitter.com/1/statuses/home_timeline.xml?&screen_name="+ usrObj.username + "&count=" + usrObj.count;
where usrObj is an object.
Getting the following error message:
Error #2032: Stream Error. URL: https://api.twitter.com/1.1/statuses/home_timeline.json" errorID=2032
Please let me know whether I am following proper url and queries. Can anyone suggest me as to how to get the tweets exactly?
Got my work done by using the following url for retrieving home timeline:
https://api.twitter.com/1/statuses/following_timeline.xml
Related
I am trying to get data from Firestore in a batch using the batchGet method. But i get an error as below :
Error: JSON error response from server: [{"error":{"code":400,"message":"Document name "["projects/MYPROJECT/databases/(default)/documents/MYCOLLECTION/DOCUMENTID"]" lacks "projects" at index 0.","status":"INVALID_ARGUMENT"}}].status: 400
I have searched for any questions regarding this, I found this. They are trying t add documents and not using batchGet, however I have followed the solution. Still no luck.
Note: I am integrating Firebase to AppGyver.
I am new to Firebase and still learning. I need all the help I can get. Thank you in advance.
I have found what I did wrong.
In AppGyver you can only set your parameters as text or number only. While the documents parameter needs to be in array. Hence, I convert the array to string using ENCODE_JSON. But that was wrong.
The correct way is just send the documents in array without converting it. Use the formula :
Just hit "Save" even there is an error telling you that it is not a text.
I'm trying to incorporate react-cloud-vision-api into a react native app. I am trying to pass an image which is save on firebase and I have the url. I console.log the url and it looks like its supposed to but I keep getting this warning and the "Google Info Hopefully" doesn't log out so its not getting the info. This is my first time using posting on Stack Overflow sorry for the bad formatting
I'm trying to scrap a webpage for data but came across the problem of needing to log in.
Connection.Response loginForm = Jsoup.connect("http://www.rapidnyc.net/users/google_login")
.method(Connection.Method.GET)
.execute();
Document document = Jsoup.connect("http://www.rapidnyc.net/users/google_login")
.data("Email", "testEmail")
.data("Passwd", "testPass")
.... //other form data
.cookies(loginForm.cookies())
.post();
This gives me the org.jsoup.HttpStatusException: HTTP error fetching URL. Status=400
I used chrome developer tool to look at the Form data being posted but nothing I post works.
1. Have you submitted ALL input fields? Including HIDDEN ones.
2. I see the website requires "captcha-box" authentication, which is to prevent web crawlers from logging in. I highly doubt you will be able to log in with your program.
I say the 400 status is coming from your program not being able to provide the value for "captcha" authentication.
I am using RFacebook package to do data mining.
For example, to get the facebook page then we do
fb_page <- getPage(page="facebook", token=fb_oauth)
In my case is it is a private group and the URL is something like this. So how do I get the page info for a group? I tried the following but got the following error.
Error in callAPI(url = url, token = token) : Unknown path
components: /posts
my_page <- getPage(page="group/222568978569", token=my_oauth)
This isn´t a reproducible example because the page you mention doesn´t exist. But I suggest that you check that this group has authorized your app. Note that after the introduction of version 2.0 of the Graph API, only friends/groups who are using the application that you used to generate the token to query the API will be returned.
I found out that opensocial API we were using in Calendar Sidebar Gadget stopped working. It was still working correctly on Friday. We were using opensocial to store and get some key-value data, and today we are getting error code: badRequest (with no error message) everytime we are trying to read anything.
This an example of the code we are using:
var idspec = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "SELF" });
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest(idspec, "mydata"), "get_data");
req.send(function(data){console.log(data)});
And this is the response we are getting from google:
errorMessage_: undefined
globalError_: true
responseItems_: Object
get_data: opensocial.ResponseItem
data_: null
errorCode_: "badRequest"
errorMessage_: undefined
The code is quite simillar to what is described here: http://docs.opensocial.org/display/OSREF/App+Data
Does anyone have some similar problem, or know how to fix it? We are using it on our production system which is down since morning. any help would be appreciated.
The API has been deprecated. For solving this i changed the implementation for importing Google Contacts with Google oAuth 2.0 and its working fine with it.
https://developers.google.com/igoogle/docs/opensocial_rest_rpc ( deprecated one ).
For using Google oAuth 2.0 visit below link :-
https://developers.google.com/accounts/docs/OAuth2Login