A list of all methods in the GeneralService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
GetUpStatus | ### Overview Simply gets if the TorBox API is available for use or not. Also might include information about downtimes. ### Authorization None needed. |
GetStats | ### Overview Simply gets general stats about the TorBox service. ### Authorization None needed. |
GetChangelogsRssFeed | ### Overview Gets most recent 100 changelogs from https://feedback.torbox.app/changelog. This is useful for people who want updates on the TorBox changelog. Includes all the necessary items to make this compatible with RSS feed viewers for notifications, and proper HTML viewing. ### Authorization None needed. |
GetChangelogsJson | ### Overview Gets most recent 100 changelogs from https://feedback.torbox.app/changelog. This is useful for developers who want to integrate the changelog into their apps for their users to see. Includes content in HTML and markdown for developers to easily render the text in a fancy yet simple way. ### Authorization None needed. |
Overview Simply gets if the TorBox API is available for use or not. Also might include information about downtimes. ### Authorization None needed.
- HTTP Method:
GET
- Endpoint:
/
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
GetUpStatusOkResponse
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"torbox-sdk-go/pkg/torboxapiconfig"
"torbox-sdk-go/pkg/torboxapi"
)
config := torboxapiconfig.NewConfig()
client := torboxapi.NewTorboxApi(config)
response, err := client.General.GetUpStatus(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
- HTTP Method:
GET
- Endpoint:
/{api_version}/api/stats
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
apiVersion | string | ✅ |
Return Type
GetStatsOkResponse
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"torbox-sdk-go/pkg/torboxapiconfig"
"torbox-sdk-go/pkg/torboxapi"
)
config := torboxapiconfig.NewConfig()
client := torboxapi.NewTorboxApi(config)
response, err := client.General.GetStats(context.Background(), "apiVersion")
if err != nil {
panic(err)
}
fmt.Println(response)
Overview Gets most recent 100 changelogs from https://feedback.torbox.app/changelog. This is useful for people who want updates on the TorBox changelog. Includes all the necessary items to make this compatible with RSS feed viewers for notifications, and proper HTML viewing. ### Authorization None needed.
- HTTP Method:
GET
- Endpoint:
/{api_version}/api/changelogs/rss
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
apiVersion | string | ✅ |
Return Type
[]byte
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"torbox-sdk-go/pkg/torboxapiconfig"
"torbox-sdk-go/pkg/torboxapi"
)
config := torboxapiconfig.NewConfig()
client := torboxapi.NewTorboxApi(config)
response, err := client.General.GetChangelogsRssFeed(context.Background(), "apiVersion")
if err != nil {
panic(err)
}
fmt.Println(response)
Overview Gets most recent 100 changelogs from https://feedback.torbox.app/changelog. This is useful for developers who want to integrate the changelog into their apps for their users to see. Includes content in HTML and markdown for developers to easily render the text in a fancy yet simple way. ### Authorization None needed.
- HTTP Method:
GET
- Endpoint:
/{api_version}/api/changelogs/json
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
apiVersion | string | ✅ |
Return Type
GetChangelogsJsonOkResponse
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"torbox-sdk-go/pkg/torboxapiconfig"
"torbox-sdk-go/pkg/torboxapi"
)
config := torboxapiconfig.NewConfig()
client := torboxapi.NewTorboxApi(config)
response, err := client.General.GetChangelogsJson(context.Background(), "apiVersion")
if err != nil {
panic(err)
}
fmt.Println(response)