This question already has an answer here:
Where is facsimileTelephoneNumber for User in Microsoft Graph?
(1 answer)
Closed 5 years ago.
I'm using Microsoft Graph API to query for user data. I've succesfully obtained access token and simple queries such as https://graph.microsoft.com/beta/me work just fine.
The problem is that the query's response is missing attributes such as fax which is very important for me. Using the old https://graph.windows.net endpoint returns facsimileTelephoneNumber attribute (which is the same) but I cannot use this older endpoint.
I've tried following https://github.com/microsoftgraph/microsoft-graph-docs/issues/2151 answer (3rd message) but I can't get the extensions working and I don't even know if it would have any help to this problem.
So is it possible to access fax attribute using the newer Microsoft Graph API?
The GitHub answer you linked to was in regards to a personal contact, not users in the Active Directory. So to save you some frustration, that isn't the way forward :).
When you query for /me, you're getting the user's entry from Active Directory. This is a user resource in Graph. From the reference, the user resource has no property that exposes a fax number. Just to make sure the docs weren't incorrect, I checked the metadata exposed by the service (GET https://graph.microsoft.com/beta/$metadata), and there is no fax field on a user.
There's a request on UserVoice (https://officespdev.uservoice.com/forums/224641-feature-requests-and-feedback/suggestions/18166054-microsoft-graph-api-user-fax-number) already to add this, you may want to go vote that up.
The Graph doesn't expose all of these fields.
try using https://developer.microsoft.com/en-us/graph/docs/concepts/query_parameters
I think in your case this will work
https://graph.microsoft.com/v1.0/me?$select=fax
If you want more properties of the user resource you can add them as comma separated values after the select query parameter.
Related
I have read several StackOverflow questions (more than 2 years old) regarding the ability to read/write a contact list from a user's contact folder(s), and it appears that it is not supported. I believe I have confirmed this with my own testing. A response to
GET "https://graph.microsoft.com/v1.0/users/user#domain.com/contactfolders/{folderid}\contacts
will produce a list of individual contacts, but contact lists are ignored. (Interestingly, if I include the option "count=true" I will get a #odata.count value indicating the presence of my lists, but no actual data). I was hoping the beta endpoint would correct this deficiency but no joy that I can tell. Is there indeed no way to obtain or create a contact list using Graph? (I know I can do it using EWS). I have not yet tried the Groups API but from what I can this is something entirely different.
As of today, its not possible to fetch tweet counts. You can read more here:
https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform
So almost all scripts/plugins wont work anymore. What would be best alternative solution with the new twitter buttons/updated API, if such exists?
For example, is there a callback, once user successfully shares something? Because i could use that to increase tweet count in my own database? So saving them locally.
To answer my own question based on findings:
For now its possible via http://opensharecount.com, they provide a drop-in replacement for the old private JSON URL based on searches made via the API (so you don't need to do all that work).
It's based on the REST API Search endpoints.
I'm trying to get a list of issues assigned to the current logged in user using the JIRA REST API, but I can't find any documentation on how to do that.
What do I need to do in order to get the issues assigned to the current user?
You can specify the issues you want to receive by using jql.
In your case rest/api/2/search?jql=assignee=currentuser() should do the trick.
Here is the relevant part of the documentation of the REST api and here is the description of the used jql-function.
I'm currently writing a shop-related site that has it's own community in different social networks. While posting to VKontakte and Facebook is less of an issue (I can understand the concept of "group", and VK actually has an option to write posts using the group's name), Twitter is more troublesome.
Two questions:
Is there even such a thing as "groups" in Twitter? The closest I have seen is lists and timelines, but neither appears to solve my issue.
I cannot give the operator access to the twitter account. VK has a specific option when posting in a group to use that group's name as poster name. How does this work in Twitter?
I need something akin to what lamoda has set up. (It appears to be a user, and every post is labeled as written by that user, however I doubt they give their ops access to the actual twitter account).
P.S.: I'm already done with getting past OAuth and using REST to actually post, thus no code provided. I'm just having trouble with the statuses/update.json call, if that's what I should actually be using.
Talk about simple solutions to simple problems.
It appears I have been overcomplicating. There are no groups in twitter, or even comments at that. You can only post to your own feed or re-post from somebody else's.
Posting to someone's feed (a shop account's, say) is simple enough using that account's pre-generated access token which can be stored in the configs.
In the email notification we can see something like
<username> followed you using <appname>.
It is great. But is there any possible way to know the application name using API?
I took a look through the REST API, and I could not find anything that would support this. My guess is that this is a twitter.com feature that is available in the API (yet).
The most logical places I looked were statuses/followers and friendships/show. In both cases there was nothing definitive. Checking the follower emails for my account, I found multiple followers that used applications (like PeopleBrowr and SocialOomph) to follow the account. In most cases, the source on their latest status object matched the application name used to follow me, but that was definitely not a sure thing.
So, to answer your question directly, no I don't think it can be done through the API (not unless there's an undocumented method out there that does this.)
I can, however, think of a way to get that info. One approach would be to set up the email account receiving the follow notifications to forward a copy to a mailbox that is checked by an automated process. When emails show up, parse them to find the app name used to follow you.
I used the following regular expression (in C#) to find the application's name and URI in the email's body:
Match m = Regex.Match(input, #"followed you using\s*<a[^""]+""(?<appUri>[^""]+)""[^>]+>(?<appName>\w*)</a>");
I used m.Groups["appName"].Value to pull out the application name, and m.Groups["appUri"].Value to pull out the URI from the match.
In order to tie the app info to a user, I had to also find the screen name with:
Match m = Regex.Match(user, #"\(#<a[^>]+>(?<screenName>\w*)</a>\) is now following");
I used m.Groups["screenName"].Value to extract the value from the match.