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}
Related
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
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.
I am interested to have a invoice link/pdf from the api which returns the invoice using new freshbooks api endpoint https://api.freshbooks.com/accounting/account/<accountid>/invoices/<invoiceid>
Even including direct_links I am unable to get the link to the invoice. With direct_links it returns json with fields id, contactid, created_date, type, userid, objectid, token.
I currently work at FreshBooks.
Unfortunately these direct link tokens will only work with old FreshBooks, which isn't mentioned in the documentation -- I'll see if we can fix that.
Poking through, it doesn't look like we've has exposed a way to access a PDF version of the invoice through the public API just yet. But I'll pass that on to the appropriate channels and I'll update this answer if that changes.
I have tried to use PUT /t/:id to update topic content with no effect.
https://github.com/discourse/discourse_api/blob/master/lib/discourse_api/api/topics.rb
Seems there is no way to update the content using API. Am I missing anything?
You need to provide the topic slug like this: PUT /t/:slug/:id as documented here: http://docs.discourse.org/#tag/Topics%2Fpaths%2F~1t~1%7Bslug%7D~1%7Bid%7D.json%2Fput
The /t/:id endpoint only works if you issue a GET request as documented here: http://docs.discourse.org/#tag/Topics%2Fpaths%2F~1t~1%7Bid%7D.json%2Fget which I guess is not what you want.
The solution
In Discourse land, a topic it's just a bunch of posts. A topic has no
body, the first post of the topic is the body.
So, what you do is this:
GET /t/:id with your topic id
Parse the post_stream and get the first post, or whichever you need. Get the ID
PUT /posts/:id and use the ID you just got, and provide post[raw] in the body.
Please, see this discussion: https://meta.discourse.org/t/updating-topic-body-via-the-api/61220/5
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