GitHubApi
| 📊 Overview: 1 Constructor | 4 Functions |
📝 Description
Create a new HTTP request with GitHub API headers and authentication
🕐 Last updated: 2025-12-10T11:45:23.106Z
📑 Table of Contents
- 🏗️ Constructor
- ⚙️ Functions
- Regular Functions
- newHttpRequest (3 params) →
4D.HTTPRequest - createIssue (3 params) →
Object - getIssues (1 param) →
Collection - onError (2 params)
- newHttpRequest (3 params) →
- Regular Functions
Constructor
constructor
[🏗️ constructor]
Class constructor
Initialize GitHub API wrapper for repository operations
Functions
Regular Functions
newHttpRequest
Function newHttpRequest($Url : Text; $Method : Text; $Body : Variant) -> 4D.HTTPRequest
Create a new HTTP request with GitHub API headers and authentication
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Url | Text | - | - |
$Method | Text | - | - |
$Body | Variant | - | - |
Returns: 4D.HTTPRequest
createIssue
Function createIssue($Title : Text; $Body : Text; $Labels : Collection) -> Object
Create a new GitHub issue with title, body, and optional labels
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Title | Text | - | - |
$Body | Text | - | - |
$Labels | Collection | - | - |
Returns: Object
getIssues
Function getIssues($Label : Text) -> Collection
Retrieve all GitHub issues, optionally filtered by label
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$Label | Text | - | - |
Returns: Collection
onError
Function onError($HttpRequest : 4D.HTTPRequest; $Event : Object)
Handle HTTP request errors (callback function)
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
$HttpRequest | 4D.HTTPRequest | - | - |
$Event | Object | - | - |
Generated from GitHubApi.4dm