diff options
| author | spiderr <spiderr@bitweaver.org> | 2023-11-02 22:30:13 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2023-11-02 22:30:13 -0400 |
| commit | 5651a4f9ce51ccf814b3692959f6b753755b2916 (patch) | |
| tree | 6dc764d6d8b4b4eec9adca0dc4ad0328c635580a | |
| parent | fef96d292f9ba4bf64cbe04c5cdc254986ee5638 (diff) | |
| download | users-5651a4f9ce51ccf814b3692959f6b753755b2916.tar.gz users-5651a4f9ce51ccf814b3692959f6b753755b2916.tar.bz2 users-5651a4f9ce51ccf814b3692959f6b753755b2916.zip | |
default api respStatus; change api example from lwp-request to curl
| -rw-r--r-- | admin/api_help_inc.php | 2 | ||||
| -rw-r--r-- | admin/api_inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/api_help_inc.php b/admin/api_help_inc.php index 906e4b6..698d3ae 100644 --- a/admin/api_help_inc.php +++ b/admin/api_help_inc.php @@ -66,7 +66,7 @@ $gApiHelp['User Authentication'] = array( 'Examples' => array( 'help' => 'The following is a command-line test of user authentication. Notice the Set-Cookie values returned. Your client should store these values and send them for all subsequent requests.', 'code' => '<code>COMMAND: -lwp-request -se -C test@example.com:s3cr3t -H \'API: API consumer_key="bad6ed95edfd983c8cb58cd397a242a2f83cd80c"\' -m GET '.API_PKG_URI.'users/info +curl -i -u "test@example.com:s3cr3t" --header \'API: API consumer_key="bad6ed95edfd983c8cb58cd397a242a2f83cd80c"\' -X GET '.API_PKG_URI.'users/info RESPONSE: 200 OK diff --git a/admin/api_inc.php b/admin/api_inc.php index 4ea8571..a0a8a63 100644 --- a/admin/api_inc.php +++ b/admin/api_inc.php @@ -9,7 +9,7 @@ function bituser_api_handler( $pMethod, $pRequest ) { $routeAction = BitBase::getParameter( $pRequest, 'route_action' ); - $pStatus = HttpStatusCodes::HTTP_NOT_FOUND; + $respStatus = HttpStatusCodes::HTTP_NOT_FOUND; $respData = "Unknown ".$routeAction." method: ".$pMethod; if( $routeAction == 'register' ) { |
