{
        "name": "Yahoo OAuth2",
        "desc": "Yahoo! Web Search Web Services give users the ability to integrate Yahoo! Search technologies into other sites, applications, and environments. \nFour search types within this service. Context Search: returns web pages matching a context-based query. Related Suggestion: returns suggested queries to extend the power of a submitted query. Spelling Suggestion: returns suggested spelling for a given term. Web Search: allows you to search the Internet for web pages by submitting queries via REST.",
        "oauth2": {
                "authorize": {
                        "url": "https://api.login.yahoo.com/oauth2/request_auth",
                        "query": {
                                "client_id": "{client_id}",
                                "response_type": "code",
                                "state": "{{state}}",
                                "redirect_uri": "{{callback}}"
                        }
                },
                "access_token": {
                        "url": "https://api.login.yahoo.com/oauth2/get_token",
                        "headers": {
                                "Authorization": "Basic !BASE64{client_id}:{client_secret}!BASE64",
                                "Content-Type": "application/x-www-form-urlencoded"
                        },
                        "query": {
                                "client_id": "{client_id}",
                                "client_secret": "{client_secret}",
                                "code": "{{code}}",
                                "grant_type": "authorization_code",
                                "redirect_uri": "{{callback}}"
                        }
                },
                "refresh": "https://api.login.yahoo.com/oauth2/get_token",
                "request": "https://social.yahooapis.com/v1",
                "parameters": {
                        "client_id": "string",
                        "client_secret": "string",
                        "scope": {
                                "values": {
                                        "sdct-r": "Grants read access to contacts.",
                                        "sdct-w": "Grants read/write access to contacts.",
                                        "fspt-r": "Grants read access to fantasy sports.",
                                        "fspt-w": "Grants read/write access to fantasy sports.",
                                        "yfin-r": "Grants read access to finance.",
                                        "yfin-w": "Grants read/write access to finance.",
                                        "admg-w": "Grants read/write access to Gemini advertising.",
                                        "gpub-r": "Grants read access to Gemini publishers.",
                                        "msgr-w": "Grants read/write access to messenger.",
                                        "sdps-r": "Grants read access to social directory profiles (public).",
                                        "sdps-w": "Grants read/write access to social directory profiles (public).",
                                        "sdpp-w": "Grants read/write access to social directory profiles (public & private).",
                                        "sdrl-w": "Grants read/write access to social directory relationships."
                                }
                        }
                }
        },
        "href": {
                "keys": "https://developer.yahoo.com/apps/create/",
                "docs": "https://developer.yahoo.com/oauth2/guide/",
                "apps": "https://developer.apps.yahoo.com/projects",
                "provider": "https://yahoo.com"
        }
}
