I am working in .NET and trying to get a calendar invite within a message. When I do this query :
_client.Users.me.Messages["aaa..."].Attachments.Request().GetAsync()
The result does not have the invite in the list of attachments.
If I call
_client.Users.me.Messages["aaa..."].Request().Expand("attachments").GetAsync()
I still get no attachments except the invite information is in in AdditionalData collection
I have no idea how to get the attachment into the attachment list and every tutorial and code snippet I have seen have told me to access the attachment directly using the .Attachments["ID"] but I don't have the ID so can't access it.
Anyone else having a similar problem?
Related
requirement: I want to get all mentions (caption, comment and tag mentions) for my Instagram user through the Instagram graph API without using the webhook. But I haven't seen any way to do that. in following end points I able to get results for the tags end point by using the ig-user-id . but for other endpoints I couldn't able to get any results since I don't know how to get comment ids and media ids that are mentioned my account. any one please help me on this to archive this
[Documentation][https://developers.facebook.com/docs/instagram-api/guides/mentions/]
GET /{ig-user-id}/tags — to get the media objects in which a Business or Creator Account has been tagged
GET /{ig-user-id}?fields=mentioned_comment — to get data about a comment that an Business or Creator Account has been #mentioned in
GET /{ig-user-id}?fields=mentioned_media — to get data about a media object on which a Business or Creator Account has been #mentioned in a caption
POST /{ig-user-id}/mentions — to reply to a comment or media object caption that a Business or Creator Account has been #mentioned in by another Instagram user
I'm building an RoR application that uses the Facebook Graph API, scraping a users events via their user_access token. I'm essentially taking that user token and making a Graph call to the API, getting all the events the user has either given a rsvp, created, declined, maybe and not_replied response to the events they've been invited to. Here is my query...
GraphAPIEndPoint = [created, declined, maybe, not_replied]
GraphAPIEndPoint.each do|endpoint|
data = Koala::Facebook::API.new(access_token)
events = data.get_connections("me", "events/#{endpoint}", fields: ['id',"name","description","place","start_time","end_time","timezone","ticket_uri", "cover"])
end
This query gives me the desired data but I'm unsure whether I'm getting private events from the user, which I don't want. After I've received the data, I've checked some source url's in my browser, which show a Facebook default error page saying, "Sorry this page isn't available". Other Facebook url's I've tested show me their events as public events, only the ones that seem specific to a group of friends or family give me this default error page. Also, if the events were deleted by the author (which could be an answer as to why I'm getting the default error page), why am I still getting the JSON for the event?
My only assumption is that I am, and if so, what are the privacy parameters to prevent this from happening and give me only the public events?(Please no FQL suggestions)
Thanks for your help!
I'd like to get the impressionBasedCpm from the Api Explorer ( and later from my app).
I can log in with an youtube partner account and toggle the oauth switch. I set all scopes to checked.
Then I try to enter
ids: contentOwner==NAME_OF_CONTENT_OWNER (not the id, retrieved from the content API, https://developers.google.com/youtube/partner/docs/v1/contentOwners/list#try-it)
metrics: impressionBasedCpm
start-date: '2015-05-01'
end-date: '2015-06-01'
The output still tells me:
You do not have permission to execute this method.
Can someone help me?
My guess is that when I authorize the application I seam to still login as a channel, so the query as a content owner is not allowed. I picked the main one with the email address. But when I'm on youtube I can switch to a specific Content-Manager Channel/Account.
Even when I try to just get the 'likes' for the contentOwner it doesn't work. If I try to get the likes based on the channel_id it works. But I like to get reports for a youtube partner that uses youtube's cms.
cheers
This query won't work because it does not follow the semantics of the API. You need to provide the ID of the contentOwner in order to get a 200 OK response. Name of Content Owner cannot be unique and hence would lead to erroneous results.
I want to access the google plus signed In user's connections email addresses in my app.
I followed this doc but it only returned me its name, image url not returning their emails.
I am able to get their email by following this but its returning me response in xml format and don't know its correct way or not.
Can anyone help me on how to get email ids or parse this xml?
I got the solution https://developers.google.com/google-apps/contacts/v3/ using this jut need to read the docs little more and it work perfectly :)
I implemented this in Swift 3:
https://github.com/kalvish21/google-contacts-swift3/tree/master/Google%20Contacts%20Viewer
I have a Gosquared widget in my Geckoboard that is tracking one of my site.It is working perfectly fine.Now,I want to add another Gosquared widget to track another site. I entered all data correctly(site name, site ID and API key), also I have put the Gosquared tracking code on my rails application. When i try to create the widget, the connection breaks down with following error "Account does not exist.".I have no clue why its not working.Please help me!!
Try testing that data is being sent from the GoSquared API successfully by accessing the GoSquared API URL directly using your credentials:
http://api.gosquared.com/concurrents.json?sid={SITE_ID}&api_key={API_KEY}
Make sure you replace {SITE_ID} and {API_KEY} in that URL with your respective details.
If you receive a JSON object like {"concurrents":150,"range_max":187} then the problem may be with Geckoboard somewhere. If you get an error on the GoSquared API, contact us on support#gosquared.com or message me here!
Geoff
GoSquared