Code Monkey home page Code Monkey logo

Comments (2)

damienalexandre avatar damienalexandre commented on May 21, 2024

Hi @JakeBooher !

Thanks for reporting this issue, this is indeed an error in Slack specification, here is the definition from https://raw.githubusercontent.com/slackapi/slack-api-specs/master/web-api/slack_web_openapi_v2.json :

{
      "/usergroups.users.list": {
            "get": {
                "consumes": [
                    "application/x-www-form-urlencoded"
                ],
                "description": "List all users in a User Group",
                "externalDocs": {
                    "description": "API method documentation",
                    "url": "https://api.slack.com/methods/usergroups.users.list"
                },
                "operationId": "usergroups_users_list",
                "parameters": [],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "Standard success response when used with a user token",
                        "examples": {
                            "application/json": {
                                "ok": true,
                                "users": [
                                    "U060R4BJ4",
                                    "W123A4BC5"
                                ]
                            }
                        },
                        "schema": {
                            "additionalProperties": false,
                            "description": "Schema for successful response from usergroups.users.list method",
                            "properties": {
                                "ok": {
                                    "$ref": "#/definitions/defs_ok_true"
                                },
                                "users": {
                                    "items": {
                                        "$ref": "#/definitions/defs_user_id"
                                    },
                                    "type": "array"
                                }
                            },
                            "required": [
                                "ok",
                                "users"
                            ],
                            "title": "usergroups.users.list schema",
                            "type": "object"
                        }
                    },
                    "default": {
                        "description": "Standard failure response when used with an invalid token",
                        "examples": {
                            "application/json": {
                                "error": "invalid_auth",
                                "ok": false
                            }
                        },
                        "schema": {
                            "additionalProperties": false,
                            "description": "Schema for error response from usergroups.users.list method",
                            "properties": {
                                "error": {
                                    "enum": [
                                        "not_authed",
                                        "invalid_auth",
                                        "account_inactive",
                                        "token_revoked",
                                        "no_permission",
                                        "org_login_required",
                                        "user_is_bot",
                                        "user_is_restricted",
                                        "invalid_arg_name",
                                        "invalid_array_arg",
                                        "invalid_charset",
                                        "invalid_form_data",
                                        "invalid_post_type",
                                        "missing_post_type",
                                        "team_added_to_org",
                                        "invalid_json",
                                        "json_not_object",
                                        "request_timeout",
                                        "upgrade_require",
                                        "fatal_error",
                                        "missing_charset",
                                        "superfluous_charset"
                                    ],
                                    "type": "string"
                                },
                                "ok": {
                                    "$ref": "#/definitions/defs_ok_false"
                                }
                            },
                            "required": [
                                "ok",
                                "error"
                            ],
                            "title": "usergroups.users.list error schema",
                            "type": "object"
                        }
                    }
                },
                "security": [
                    {
                        "slackAuth": [
                            "usergroups:read"
                        ]
                    }
                ],
                "tags": [
                    "usergroups.users",
                    "usergroups"
                ]
            }
        }
}

There is no parameters in the definition 😭,
so we will have to produce to patch and regenerate the API Client.

We will look into this soon 👍

from slack-php-api.

pyrech avatar pyrech commented on May 21, 2024

Fixed in #61

from slack-php-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.