Microsoft Teams graph api (get channels) does not return data in users default language it always returns data in english? - azure-ad-graph-api

I have my teams client language setup in french, I see the general channel name change in french,
however when I use GRAPH REST API GET /teams/{id}/channels/{id} to query the channels for the logged in user it returns data to me in english and not french
does the API support language selected by the logged in user?

Unfortunately, the Microsoft Teams graph api does not support the function of language translation. This is because when you created the teams, it was already stored in the database in the default language (English), so when you call the API, you get it from the database The data is displayed in English, and Microsoft Teams graph api cannot translate it for you in real time.
Although the customer language of your team is set to French, this is only the language displayed on the page, and the data storage language of the back-end database is still the default English.

Related

General question about SmartSheet API and creating a user interface

My company keeps individual employee schedules. Each employee manages their own schedule. Admin,supervisors and project manager have to go to each sheet and look for the information.
I need to create a system that allows someone to select a date range and skill set then produce a sheet with the information that matches the criteria. I have installed the Python API and worked through a few tutorials.
Now I need to know how to make command buttons, date pickers . . .
A quick read of my search results indicates that this is not part of the Smartsheet API!
Is there a way to do this through the SmartSheet API? Or how would you approach this?
The Smartsheet API enables you to programmatically access data in Smartsheet (i.e., create, read, update, delete data in Smartsheet). This is true for all APIs -- they simply provide a means for you to programmatically access data. You'll need to build the web app's user interface (UI) yourself by using HTML, CSS, JavaScript, etc.
Alternatively -- instead of building a custom web application like you've described -- I'd suggest that you look into the possibility of creating Smartsheet Reports that can provide the data you've described. You can create Smartsheet Reports via the Smartsheet UI -- so you wouldn't need to do any programming at all.

How to maintain a user model in API.AI (Dialogflow) for a chatbot

I am using Dialogflow to create a chat bot. How do I maintain a user model within a chatbot system?
I want to have a different user model saved for each user in a group. The user model should store the user’s name, personal information it gathers from the dialog, and the user’s likes and dislikes.
With this information, I would like to add personalized remarks from the user model to the dialog engine.
You need some database to story User information.
as per Dialogflow
It's helpful to think of API.AI as just that - an API that you use to
parse user intent from natural language queries. If you have custom
business logic, platform-specific formatting requirements, or need to
integrate with external data stores, it would be better to create your
bot from scratch in code, and make calls out to API.AI in order to
parse inbound queries. API.AI isn't a bot-building platform, but a
Natural Language Understanding platform.
for more Information click here
you can use web-hooks which hits your controller function and run logics which you want like save information.There is one Object like response in which all information inside there
It depends how long you wish to maintain the information about the user and what platform, if any, you're integrating Dashbot with.
Using just the Dashbot framework, one good way to maintain the user information is through the parameters available to a Context. This will be retained during the entire conversational session.
However, if you want to maintain this information between sessions, you'll need to handle this in your fulfillment - in particular, you'll have to save it in a permanent store (such as a database) against a userid if one is provided for your integration.

Get users that speak specific language from VK

I want to get list of users ids from VK api. I know city and language that is listed in users profiles.
I know how to get users by city - but what about language? How can i do it using VK API?
You can add atr lang in main request api https://vk.com/dev/api_requests
api

Why Deezer search API is not returning results on deployed cloud application

I am developing a application that uses Deezer search API to look for a track.
Im a using this GET query : http://api.deezer.com/search/autocomplete?q=eminem
On my computer, the query returns a lot of tracks
However, when deployed to Windows Azure (on Western Europe zone), this same query returns a response with no tracks :
{"tracks":{"data":[]},"albums":{"data":[]},"artists":{"data":[{"id":13,"name":"Eminem",.....
Is there any limitations regarding calls to the search API ?
Why this is not working ?
It seems like you're getting US local results, requests from Windows Azure seem to be somehow located from there.
Requests coming from US servers will receive empty data, because Deezer's not available there,
You can work around that issue by passing an access_token parameter with the request. If the access_token is associated with a Premium user who registered in a Deezer live country (e.g. Italy for example), the request will take the user country associated with the token into account. Therefore, it will return results.
That above workaround isn't working for free users.

Preparing database to import Facebook languages spoken

I want to record 'languages spoken' in my User database and I am planning to import the data from omniauth Facebook login, as well as letting users select which languages they speak themselves when updating their profiles.
I looked up how languages spoken is recorded: https://developers.facebook.com/docs/reference/api/user/
And it says..
'array of objects containing language id and name'
How can I prepare my Rails database to receive this data? And how can I send data to something like this from the profile form
If all you want is the name of the language, then you could simply use a single column called languages on the User model that's just a comma-separated list of the languages.
If you want more details for each language (e.g. the FB ID associated with it, etc), then you could make a Language model that has columns for that information. Then you could use a has_many and belongs_to relationship for the User and Language models respectively.
To save to the DB, you'll just need to parse whatever the Facebook API gives you and then save that to the database.