Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I tried to use the Microsoft Graph API from the Request module in Python, but I was still new and didn't want to use Postman either. But I had a problem using the Request module:
How to select the application platform type?
How to fill in the redirect URL?
How to get refresher token and access token ?And how to renew(refresh) them?
How to get Tenant ID?
This is all my questions. I hope someone can help me solve them.
(This question by the machine translation, if there is a small mistake, also hope you understand.)
Congrats on your first question!
This is not a full answer that you might have been looking for, but take a look at the Microsoft Graph API docs
After you register your app and get authentication tokens for a user or service, you can make requests to the Microsoft Graph API.
Did you register your app? If not here are the docs
In your question it looks like you're describing the flow for get access on behalf of the user, but what you need is get access without a user. In order to use the API through the requests module you need to follow this tutorial
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I have to develop an API to manage data between my Database in PostGreSQL and my website in Django.
I'm actually looking for the best way to manage and transfer this data, what I actually found on different topics / sites is the Django Rest Framework to develop a Rest API in Django, here I would use a JavaScript framework for the front like React, Angular or VueJS (any tips about which one to choose ? ).
I was wondering if there was other solutions that would be interesting ? I've been searching about FTP or things like this.
Thanks,
Lucas
Like you said you need to send and retrieve information like name, contact, login detail etc related to user and their subscriptions.
In this case you don't have to think about FTP. It isn't related here. FTP is something that you'll use to transfer files without django.
With django you will have to use DRF (django rest framework) or use GraphQL along.
There is a package well known to use GraphQl called graphene
For front end part you can use anything according to your requirement and skillset.
Hope this helps.
Cheers
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I need to build a app which has the following design pattern.
Results displayed on iOS device.
User data stored online (more than
just username/password, also data they themselves put in).
User can sign in with TW/FB etc.
Computation logic code running on backend, which will need to gather data from online sources, and produce results. The server code will be Node.js or Python.
I think some combination of Firebase and Google App engine will work, but I'm not exactly sure which of the design patterns in the following link is the one I'm looking for.
https://cloud.google.com/solutions/mobile/mobile-app-backend-services#design-pattern
?
Based on your description, I think the second one will work best.
https://cloud.google.com/solutions/mobile/mobile-app-backend-services#firebase-appengine-standard
You will likely need to use firebase queue to do what you're planning to do.
https://firebase.googleblog.com/2015/05/introducing-firebase-queue_97.html
Results displayed on iOS device.
Using iOS firebase calls
User data stored online (more than
just username/password, also data they themselves put in).
Using iOS fireabse calls
User can
sign in with TW/FB etc.
Using firebase authentication
Computation logic code running on backend,
which will need to gather data from online sources, and produce
results. The server code will be Node.js or Python.
Using firebase queue running on google app engine
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I read about REST API specifications. These are the principles:
everything is a resource
each resource is identifiable by a unique identifier
use the standard HTTP methods
Now suppose there is a table for contact details
id , owner, contact name,contact number, created At
I want to design an API to consume the data. I can design the api in the following ways.
For getting the contact by owner
Get /contact/owner/david
or
Get /getContactByOwner?ownerName="david"
For writing into the table
post /contact/owner
{contactDetail JSON in request param}
or
post /addToContact?owner="john"&...
Which design is RESTful? What is wrong with the other one?
The rule of thumb with RESTful naming conventions is to use nouns as your endpoints (since your verbs should be limited to get / post / put / delete / etc). So in your example, Get contact/owner/david and Post contact/owner would be preferable. However, if you're really using REST architecture, you should technically be using HATEOAS (Hypertext-as-the-engine-of-application-state) and including links in XML or HTML responses, so if you're using JSON it's probably more REST-like as opposed to full-blown REST. At the end of the day, it's all a matter of preference; just try to use whatever will fit the needs of the application's users in a way that's somewhat self-documenting and intuitive.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I picked dropbox today. Please assist keeping that in mind.
I need to write a code which will create dropbox develop app. From there need to retrieve key & secret value. useing that need to retrieve access token.
Is there any way to do in code. If not, please suggest me any recursive way to do it.
So you may assist me, how to get access token from key & secret without going to web browser
Thanks
According to their docs, dropbox uses OAuth2. Have a look # their sdk/api or some OAuth2 examples and libraries in python. For that, google is your friend.
This question has some links which may be of some help.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm a learning Python/Django programmer and want to try to create an easy web-messenger. Is it real to write web-messenger for django? And does any modules for that exist or any open-source protocols support python?
Or you can install xmpp server (like eJabberd) and write a server side interface over it. It will be easier, faster and optimal solution.
Gmail and Facebook both uses xmpp protocol. People using your application will also be able to send chat request to their friends in gmail.
You wont even have to write a website interface, there are javascript library (like Converse.js) available which you can directly plug into your website and you will be good to go.
Not sure what you mean by 'web-messenger'. Do you mean a chat system? Django have plenty of chat apps that you can integrate into your projects.