From e6f495ba7e8f2973aab997739d41909a013376e1 Mon Sep 17 00:00:00 2001 From: Wendy Date: Wed, 6 Nov 2024 10:27:33 +0000 Subject: [PATCH] Update Steam Web API reference --- api.json | 75 ++++-------------------------------------------- generate_api.php | 5 ++++ 2 files changed, 10 insertions(+), 70 deletions(-) diff --git a/api.json b/api.json index e614b1e..5383cc8 100644 --- a/api.json +++ b/api.json @@ -419,39 +419,7 @@ "GetLinkedAccountInfo": { "_type": "undocumented", "version": 1, - "description": "List all my active linked external accounts; may be requested to return the access token", - "parameters": [ - { - "name": "key", - "type": "string", - "optional": false, - "description": "Access key" - }, - { - "name": "account_type", - "type": "EInternalAccountType", - "optional": true, - "description": "" - }, - { - "name": "account_id", - "type": "uint64", - "optional": true, - "description": "Internal account ID" - }, - { - "name": "filter", - "type": "EExternalAccountType", - "optional": true, - "description": "if specified then only return this external account type" - }, - { - "name": "return_access_token", - "type": "bool", - "optional": true, - "description": "if provided and true, then returns valid access token if available. It may refresh the token." - } - ] + "parameters": [] } }, "IAccountPrivateAppsService": { @@ -8328,6 +8296,7 @@ "RespondToRequestedPurchase": { "_type": "undocumented", "version": 1, + "httpmethod": "POST", "description": "Act on a purchase request", "parameters": [ { @@ -19549,43 +19518,6 @@ } ] }, - "SetUserActionData": { - "_type": "undocumented", - "version": 1, - "httpmethod": "POST", - "parameters": [ - { - "name": "key", - "type": "string", - "optional": false, - "description": "Access key" - }, - { - "name": "steamid", - "type": "fixed64", - "optional": true, - "description": "" - }, - { - "name": "gid", - "type": "fixed64", - "optional": true, - "description": "" - }, - { - "name": "type", - "type": "int32", - "optional": true, - "description": "" - }, - { - "name": "jsondata", - "type": "string", - "optional": true, - "description": "" - } - ] - }, "SetUserSharingPermissions": { "_type": "undocumented", "version": 1, @@ -20307,6 +20239,7 @@ "GetNominationShareLink": { "_type": "undocumented", "version": 1, + "httpmethod": "POST", "parameters": [ { "name": "key", @@ -26180,6 +26113,7 @@ "Train": { "_type": "undocumented", "version": 1, + "httpmethod": "POST", "parameters": [ { "name": "key", @@ -34383,6 +34317,7 @@ "QueryTime": { "_type": "undocumented", "version": 1, + "httpmethod": "POST", "description": "Get server's idea of the current time", "parameters": [ { diff --git a/generate_api.php b/generate_api.php index 64d65bf..07c13e2 100644 --- a/generate_api.php +++ b/generate_api.php @@ -204,6 +204,11 @@ function MergeLists( array &$FinalList, array $Interfaces, ?string $Type = null $FinalList[ $InterfaceName ][ $MethodName ][ 'description' ] = $Method[ 'description' ]; } + if( !empty( $Method[ 'httpmethod' ] ) && empty( $FinalList[ $InterfaceName ][ $MethodName ][ 'httpmethod' ] ) ) + { + $FinalList[ $InterfaceName ][ $MethodName ][ 'httpmethod' ] = $Method[ 'httpmethod' ]; + } + if( !empty( $Method[ 'parameters' ] ) ) { foreach( $Method[ 'parameters' ] as $Parameter )