Getting ErrorItemNotFound - microsoft-graph-api

I am using graph api for outlook calendars.
Frequently I am getting ({"error":{"code":"ErrorItemNotFound","message":"The specified object was not found in the store.","innerError":{"date":"2022-10-06T04:31:59","request-id":"e1682a2b-eeed-4f34-9c55-218f5af8e83c","client-request-id":"e1682a2b-eeed-4f34-9c55-218f5af8e83c"}}})
The call I am making is
https://graph.microsoft.com/v1.0/me/events/#{event_id}?$select=subject,body,bodyPreview,start,end,recurrence,showAs
Where
event_id is the id I get in request ["resourceData"]["id"] from outlook push notification.
Please help.

When we tried to repo the same ,the API is working fine , could you please try to get list to events Fist with API - https://graph.microsoft.com/v1.0/me/events , then try to select the available id , and then try with https://graph.microsoft.com/v1.0/me/events/{event_id}?$select=subject,body,bodyPreview,start,end,recurrence,showAs
Note: In your URL ,you added # before event_id , i am assuming that was just a typo , make sure you are calling the correct API
Hope this helps
Thanks

Related

How to get commit ID via rest api in the Jira

I need to get the comment content via code or script, and I found this doc and try it, but now, the latest issue is I cannot get the comment ID. Could you please help us to get the latest comment ID or list all comment ID via task ID. Thx.
What I tried:
API: https://your-domain.atlassian.net/rest/api/2/comment/{commentId}/properties
Java code:
HttpResponse<JsonNode> response = Unirest.get("https://your-domain.atlassian.net/rest/api/2/comment/{commentId}/properties")
.basicAuth("email#example.com", "<api_token>")
.header("Accept", "application/json")
.asJson();
System.out.println(response.getBody());
I have tried this api via postman, and it works.
You can find it from the issue id or key.
First, get the issue's comments via:
GET /rest/api/2/issue/{issueIdOrKey}/comment
Then, find the comment id from here and call
GET /rest/api/2/comment/{commentId}/properties
Update
The first API could get task details and then we need to use below API to get one of the comment.
rest/api/2/issue/{issueIdOrKey}/comment/{commentId}

Microsoft Graph API GET onlineMeeting via joinUrl

Current using Microsoft Graph API v1.0 to create onlineMeetings via POST /me/events. Reason being, if you create an onlineMeeting directly and add a user in the meeting, it doesn't create a calendar event.
The params I use for that call is:
:isOnlineMeeting => true,
:onlineMeetingProvider => "teamsForBusiness"
Which works great and returns a joinUrl under onlineMeetings.
However, I'd like to pull attendance data from the GET onlineMeeting route to get attendance information since the attendees section of the event only seems to return users that were added to the actual event, not who attended the actual onlineMeeting.
I have tried doing a get request like such:
/v1.0/me/onlineMeetings?$filter=joinWebUrl%20eq%20'https://whateverthejoinurlis'
but the response says it's not a valid filter.
Any guidance would be appreciated.
Posting the Answer for better knowledge
Copying from #Shiva Keshav Varma comments
Try it in beta version
/beta/me/onlineMeetings?$filter=joinWebUrl%20eq%20'https://whateverthejoinurlis
You can also get the attendeereport using beta/users/{userId}/onlineMeetings/{meetingId}/attendeeReport as specified in the document.

How to get full name of specific Subreddit of Reddit

Presently, I am working on Reddit app. A user can subscribe or unsubscribe from my app which will reflect to the respective account as well.
I am using ReddKit.
Now, I am stuck in getting a subreddit Full name field which is required to subscribe or unsubscribe by calling subscribeToSubredditWithFullName method. But, I am not able to extract Full Name from the response as an identifier error is being returned.
Response = "RKSubreddit: 0x7******60, full name: t5_***eq, name: politics"
Can anybody help in getting the Full Name of a subreddit?
Is there any other way to subscribe to a subreddit ?
After working on Reddkit, I found the answer that we can call "linksInSubredditWithName" method and if we need sub-reddit "full name" then it will be available in RKLink.h which will be accessible by an object of RKLink.

We want a nice list of events pulling from Eventbrite

I'm new to Eventbrite. I would like to list out events from Eventbrite using the event_search() method. I am using the following url and the user api key (https://www.eventbrite.com/userkeyapi):
https://www.eventbrite.com/xml/event_search?app_key=userapikey&keywords=&city=&dat.
But I got an error message like
<error><error_message>This application key is not valid.</error_message> <error_type>Application Key Error</error_type></error>.
You need an API key, not a user key - see http://developer.eventbrite.com/doc/authentication/
You can get your events list from Eventbrite using the "organizer_list_events" method.
https://www.eventbrite.com/xml/organizer_list_events?app_key={your applicaton key}&id={your id}. I got My Events list successfully with this method.
You can get your events list from Eventbrite using the "organizer_list_events" method.
https://www.eventbrite.com/xml/organizer_list_events?app_key={your applicaton key}&id={your id}. I got My Events list successfully with this method.
This code is not working

What does the number refer to in link

I am looking at old posts to try and figure out what's wrong with the hackbook example at https://github.com/facebook/facebook-ios-sdk/tree/master/sample/Hackbook .
In this post, Post image to facebook using graph api , it seems that his problem was 117795728310/photos" instead of me/photos
What does 117795728310 refer to? I'm assuming it's not his app id. If it's his user id, where can I find out what mine is?
Thanks,
Mich
The paths of the open graph usually start with the id of the object and then it's connections.
For example: 6708787004/feed will return the feed for the South Park page.
The id can be replaced with a "username", so the above example is the same as "southpark/feed".
And "me/feed" is the same as "YOUR_USER_ID/feed"
You can get your id in all kind of ways, it will be easier to just check "/me" in the graph explorer.
The id you posted is not of a user but a page (graph explorer)
It does look like a User ID.
Go to http://www.facebook.com/note.php?note_id=91532827198 to see how you get yours

Resources