HttpRequest.create Method
Parent Object: HttpRequestDefined in namespace "adsk::core" and the header file is <Core/Application/HttpRequest.h>
Description
Creates a new HttpRequest object.
Syntax
This is a static method. |
Return Value
| Type | Description |
| HttpRequest | Returns the new HttpRequest object. |
Parameters
| Name | Type | Description |
| url | string | The URL to make the request to. |
| method | HttpMethods | The method to use for the request. The default is GetMethod. This is an optional argument whose default value is HttpMethods.GetMethod. |
Samples
| Name | Description |
| Gets all properties using GraphQL | Fetches bulk component properties of the root component and from occurrences via single GraphQL query. |
| Get part number using GraphQL | Fetches part number of root component and from occurrences via GQL query. |
| Set part number using GraphQL | Sets part number of root component and from occurrences via GQL query. |
