clients/c/generated/api/RemoteAccessAPI.c
void
RemoteAccessAPI_getJobProgressiveText(apiClient_t *apiClient, char * name , char * number , char * start )
{
    list_t    *localVarQueryParameters = list_createList();
    list_t    *localVarHeaderParameters = NULL;
    list_t    *localVarFormParameters = NULL;
    list_t *localVarHeaderType = NULL;
    list_t *localVarContentType = NULL;
    char      *localVarBodyParameters = NULL;

    // create the path
    long sizeOfPath = strlen("/job/{name}/{number}/logText/progressiveText")+1;
    char *localVarPath = malloc(sizeOfPath);
    snprintf(localVarPath, sizeOfPath, "/job/{name}/{number}/logText/progressiveText");


    // Path Params
    long sizeOfPathParams_name = strlen(name)+3 + strlen(number)+3 + strlen("{ name }");
    if(name == NULL) {
        goto end;
    }
    char* localVarToReplace_name = malloc(sizeOfPathParams_name);
    sprintf(localVarToReplace_name, "{%s}", "name");

    localVarPath = strReplace(localVarPath, localVarToReplace_name, name);

    // Path Params
    long sizeOfPathParams_number = strlen(name)+3 + strlen(number)+3 + strlen("{ number }");
    if(number == NULL) {
        goto end;
    }
    char* localVarToReplace_number = malloc(sizeOfPathParams_number);
    sprintf(localVarToReplace_number, "{%s}", "number");

    localVarPath = strReplace(localVarPath, localVarToReplace_number, number);



    // query parameters
    char *keyQuery_start = NULL;
    char * valueQuery_start = NULL;
    keyValuePair_t *keyPairQuery_start = 0;
    if (start)
    {
        keyQuery_start = strdup("start");
        valueQuery_start = strdup((start));
        keyPairQuery_start = keyValuePair_create(keyQuery_start, valueQuery_start);
        list_addElement(localVarQueryParameters,keyPairQuery_start);
    }
    apiClient_invoke(apiClient,
                    localVarPath,
                    localVarQueryParameters,
                    localVarHeaderParameters,
                    localVarFormParameters,
                    localVarHeaderType,
                    localVarContentType,
                    localVarBodyParameters,
                    "GET");

    if (apiClient->response_code == 200) {
        printf("%s\n","Successfully retrieved job&#39;s build progressive text output");
    }
    if (apiClient->response_code == 401) {
        printf("%s\n","Authentication failed - incorrect username and/or password");
    }
    if (apiClient->response_code == 403) {
        printf("%s\n","Jenkins requires authentication - please set username and password");
    }
    if (apiClient->response_code == 404) {
        printf("%s\n","Job cannot be found on Jenkins instance");
    }
    //No return type
end:
    if (apiClient->dataReceived) {
        free(apiClient->dataReceived);
        apiClient->dataReceived = NULL;
        apiClient->dataReceivedLen = 0;
    }
    list_freeList(localVarQueryParameters);
    
    
    
    
    free(localVarPath);
    free(localVarToReplace_name);
    free(localVarToReplace_number);
    if(keyQuery_start){
        free(keyQuery_start);
        keyQuery_start = NULL;
    }
    if(valueQuery_start){
        free(valueQuery_start);
        valueQuery_start = NULL;
    }
    if(keyPairQuery_start){
        keyValuePair_free(keyPairQuery_start);
        keyPairQuery_start = NULL;
    }
    if(keyQuery_start){
        free(keyQuery_start);
        keyQuery_start = NULL;
    }
    if(keyPairQuery_start){
        keyValuePair_free(keyPairQuery_start);
        keyPairQuery_start = NULL;
    }

}
// Retrieve job's build progressive text output
//
Retrieve job's build progressive text output
Retrieve job ' s build progressive text output
void
RemoteAccessAPI_getJobProgressiveText(apiClient_t *apiClient, char * name , char * number , char * start )
{
    list_t    *localVarQueryParameters = list_createList();
    list_t    *localVarHeaderParameters = NULL;
    list_t    *localVarFormParameters = NULL;
    list_t *localVarHeaderType = NULL;
    list_t *localVarContentType = NULL;
    char      *localVarBodyParameters = NULL;
    long sizeOfPath = strlen("/job/{name}/{number}/logText/progressiveText")+1;
    char *localVarPath = malloc(sizeOfPath);
    snprintf(localVarPath, sizeOfPath, "/job/{name}/{number}/logText/progressiveText");
    long sizeOfPathParams_name = strlen(name)+3 + strlen(number)+3 + strlen("{ name }");
    if(name == NULL) {
        goto end;
    }
    char* localVarToReplace_name = malloc(sizeOfPathParams_name);
    sprintf(localVarToReplace_name, "{%s}", "name");
    localVarPath = strReplace(localVarPath, localVarToReplace_name, name);
    long sizeOfPathParams_number = strlen(name)+3 + strlen(number)+3 + strlen("{ number }");
    if(number == NULL) {
        goto end;
    }
    char* localVarToReplace_number = malloc(sizeOfPathParams_number);
    sprintf(localVarToReplace_number, "{%s}", "number");
    localVarPath = strReplace(localVarPath, localVarToReplace_number, number);
    char *keyQuery_start = NULL;
    char * valueQuery_start = NULL;
    keyValuePair_t *keyPairQuery_start = 0;
    if (start)
    {
        keyQuery_start = strdup("start");
        valueQuery_start = strdup((start));
        keyPairQuery_start = keyValuePair_create(keyQuery_start, valueQuery_start);
        list_addElement(localVarQueryParameters,keyPairQuery_start);
    }
    apiClient_invoke(apiClient,
                    localVarPath,
                    localVarQueryParameters,
                    localVarHeaderParameters,
                    localVarFormParameters,
                    localVarHeaderType,
                    localVarContentType,
                    localVarBodyParameters,
                    "GET");
    if (apiClient->response_code == 200) {
        printf("%s\n","Successfully retrieved job&#39;s build progressive text output");
    }
    if (apiClient->response_code == 401) {
        printf("%s\n","Authentication failed - incorrect username and/or password");
    }
    if (apiClient->response_code == 403) {
        printf("%s\n","Jenkins requires authentication - please set username and password");
    }
    if (apiClient->response_code == 404) {
        printf("%s\n","Job cannot be found on Jenkins instance");
    }
end:
    if (apiClient->dataReceived) {
        free(apiClient->dataReceived);
        apiClient->dataReceived = NULL;
        apiClient->dataReceivedLen = 0;
    }
    list_freeList(localVarQueryParameters);
    free(localVarPath);
    free(localVarToReplace_name);
    free(localVarToReplace_number);
    if(keyQuery_start){
        free(keyQuery_start);
        keyQuery_start = NULL;
    }
    if(valueQuery_start){
        free(valueQuery_start);
        valueQuery_start = NULL;
    }
    if(keyPairQuery_start){
        keyValuePair_free(keyPairQuery_start);
        keyPairQuery_start = NULL;
    }
    if(keyQuery_start){
        free(keyQuery_start);
        keyQuery_start = NULL;
    }
    if(keyPairQuery_start){
        keyValuePair_free(keyPairQuery_start);
        keyPairQuery_start = NULL;
    }
}
void RemoteAccessAPI_getJobProgressiveText ( apiClient_t * apiClient , char * name , char * number , char * start ) { list_t * localVarQueryParameters = list_createList ( ) ; list_t * localVarHeaderParameters = NULL ; list_t * localVarFormParameters = NULL ; list_t * localVarHeaderType = NULL ; list_t * localVarContentType = NULL ; char * localVarBodyParameters = NULL ; long sizeOfPath = strlen ( " " ) + 1 ; char * localVarPath = malloc ( sizeOfPath ) ; snprintf ( localVarPath , sizeOfPath , " " ) ; long sizeOfPathParams_name = strlen ( name ) + 3 + strlen ( number ) + 3 + strlen ( " " ) ; if ( name == NULL ) { goto end ; } char * localVarToReplace_name = malloc ( sizeOfPathParams_name ) ; sprintf ( localVarToReplace_name , " " , " " ) ; localVarPath = strReplace ( localVarPath , localVarToReplace_name , name ) ; long sizeOfPathParams_number = strlen ( name ) + 3 + strlen ( number ) + 3 + strlen ( " " ) ; if ( number == NULL ) { goto end ; } char * localVarToReplace_number = malloc ( sizeOfPathParams_number ) ; sprintf ( localVarToReplace_number , " " , " " ) ; localVarPath = strReplace ( localVarPath , localVarToReplace_number , number ) ; char * keyQuery_start = NULL ; char * valueQuery_start = NULL ; keyValuePair_t * keyPairQuery_start = 0 ; if ( start ) { keyQuery_start = strdup ( " " ) ; valueQuery_start = strdup ( ( start ) ) ; keyPairQuery_start = keyValuePair_create ( keyQuery_start , valueQuery_start ) ; list_addElement ( localVarQueryParameters , keyPairQuery_start ) ; } apiClient_invoke ( apiClient , localVarPath , localVarQueryParameters , localVarHeaderParameters , localVarFormParameters , localVarHeaderType , localVarContentType , localVarBodyParameters , " " ) ; if ( apiClient -> response_code == 200 ) { printf ( " \n " , " " ) ; } if ( apiClient -> response_code == 401 ) { printf ( " \n " , " " ) ; } if ( apiClient -> response_code == 403 ) { printf ( " \n " , " " ) ; } if ( apiClient -> response_code == 404 ) { printf ( " \n " , " " ) ; } end : if ( apiClient -> dataReceived ) { free ( apiClient -> dataReceived ) ; apiClient -> dataReceived = NULL ; apiClient -> dataReceivedLen = 0 ; } list_freeList ( localVarQueryParameters ) ; free ( localVarPath ) ; free ( localVarToReplace_name ) ; free ( localVarToReplace_number ) ; if ( keyQuery_start ) { free ( keyQuery_start ) ; keyQuery_start = NULL ; } if ( valueQuery_start ) { free ( valueQuery_start ) ; valueQuery_start = NULL ; } if ( keyPairQuery_start ) { keyValuePair_free ( keyPairQuery_start ) ; keyPairQuery_start = NULL ; } if ( keyQuery_start ) { free ( keyQuery_start ) ; keyQuery_start = NULL ; } if ( keyPairQuery_start ) { keyValuePair_free ( keyPairQuery_start ) ; keyPairQuery_start = NULL ; } }
Retrieve job's build progressive text output
Retrieve job ' s build progressive text output
// create the path // Path Params // Path Params // query parameters //No return type