Skip to content

Commit

Permalink
misc: update API documentation URLs (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
radulucut authored Dec 4, 2024
1 parent 4a4c944 commit 1615f6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions globalping/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import (
type Client interface {
// Creates a new measurement with parameters set in the request body. The measurement runs asynchronously and you can retrieve its current state at the URL returned in the Location header.
//
// https://www.jsdelivr.com/docs/api.globalping.io#post-/v1/measurements
// https://globalping.io/docs/api.globalping.io#post-/v1/measurements
CreateMeasurement(measurement *MeasurementCreate) (*MeasurementCreateResponse, error)
// Returns the status and results of an existing measurement. Measurements are typically available for up to 7 days after creation.
//
// https://www.jsdelivr.com/docs/api.globalping.io#get-/v1/measurements/-id-
// https://globalping.io/docs/api.globalping.io#get-/v1/measurements/-id-
GetMeasurement(id string) (*Measurement, error)
// Returns the status and results of an existing measurement. Measurements are typically available for up to 7 days after creation.
//
// https://www.jsdelivr.com/docs/api.globalping.io#get-/v1/measurements/-id-
// https://globalping.io/docs/api.globalping.io#get-/v1/measurements/-id-
GetMeasurementRaw(id string) ([]byte, error)
// Returns a link to be used for authorization and listens for the authorization callback.
//
Expand Down
2 changes: 1 addition & 1 deletion globalping/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http"
)

// https://www.jsdelivr.com/docs/api.globalping.io#get-/v1/limits
// https://globalping.io/docs/api.globalping.io#get-/v1/limits
type LimitsResponse struct {
RateLimits RateLimits `json:"rateLimit"`
Credits CreditLimits `json:"credits"` // Only for authenticated requests
Expand Down
2 changes: 1 addition & 1 deletion globalping/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"
)

// Docs: https://www.jsdelivr.com/docs/api.globalping.io
// Docs: https://globalping.io/docs/api.globalping.io

type Locations struct {
Magic string `json:"magic"`
Expand Down

0 comments on commit 1615f6b

Please sign in to comment.