Difference between revisions of "Truxton get website method names"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "Retrieves the URL method names and values. =Syntax= <source lang="C"> void truxton_get_website_method_names( uint64_t truxton_handle, char * destination_strin...")
 
 
Line 1: Line 1:
 
Retrieves the [[URL Methods|URL method]] names and values.
 
Retrieves the [[URL Methods|URL method]] names and values.
 +
This data comes from the <code>[WebsiteMethod]</code> table in the database.
  
 
=Syntax=
 
=Syntax=

Latest revision as of 07:54, 28 May 2023

Retrieves the URL method names and values. This data comes from the [WebsiteMethod] table in the database.

Syntax

void truxton_get_website_method_names( uint64_t truxton_handle, char * destination_string, size_t max_size );

Parameters

truxton_handle

The handle created by the truxton_create() call.

destination_string

The string to be written to.

max_size

The maximum number of characters that can be written to destination_string

Remarks

The string returned by this API will be in JSON format.

Sample

void main()
{
   char * json = (char *) malloc( 10485760 );

   truxton_start();

   uint64_t truxton = truxton_create();

   truxton_get_website_method_names( truxton, json, 10485760 );

   printf( "%s\n", json);

   truxton_destroy( truxton );

   free( json );

   truxton_stop();
}