API Implementation Methods

2020-08-07T06:59:45.197+00:00

What are the common API implementation methods?

Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,737 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vicky Wang 2,646 Reputation points
    2020-08-07T07:07:22.547+00:00

    As you begin working with third-party APIs, you'll run into a variety of API authentication methods. The three most common methods to perform authenticated requests with an API are:

    Basic authentication: You send your username/password alongside every API call
    API Key: The service creates a unique key for your account and you pass it alongside every request
    OAuth: A user clicks on a sign-in button, grants permission, and your app can authenticate each request with an access_token

    Each method has its own pros/cons:

    Basic is very easy to implement, but would you give your Google account password to someone? (You shouldn't!)
    API Key is as easy to implement, both for the API provider and the developer, but have you ever tried to ask a non-techie to give you their API key?
    OAuth (especially OAuth2.0) is the best user experience. Your user clicks on a button and that's it. But for developers, implementing an OAuth dance can be tricky!

    The specific introduction can refer to the link:https://blog.bearer.sh/the-three-most-common-api-authentication-methods/

    Tip: This answer contains the content of a third-party website. Microsoft makes no representations about the content of these websites. We provide this content only for your convenience.

    Hope this information can help you

    Best wishes
    Vicky

    0 comments No comments

0 additional answers

Sort by: Most helpful