Skip to content

Class: InstanceEndpoint ​

Defined in: endpoints/instance.ts:6

Constructors ​

Constructor ​

ts
new InstanceEndpoint(client): InstanceEndpoint;

Defined in: endpoints/instance.ts:7

Parameters ​

ParameterType
clientRESTClient

Returns ​

InstanceEndpoint

Methods ​

getBeamWeather() ​

ts
getBeamWeather(locationId?, config?): Promise<{
  success: boolean;
  weather: BeamWeather | null;
}>;

Defined in: endpoints/instance.ts:9

Parameters ​

ParameterType
locationId?number
config?AxiosRequestConfig<any, any>

Returns ​

Promise<{ success: boolean; weather: BeamWeather | null; }>


getLocalDetails() ​

ts
getLocalDetails(): Promise<IInstanceDetailsResponse>;

Defined in: endpoints/instance.ts:36

get local instance details (public, unauthenticated) returns only the home instance this server represents

Returns ​

Promise<IInstanceDetailsResponse>


searchBeamLocations() ​

ts
searchBeamLocations(
   countryCode, 
   name, 
   config?
): Promise<{
  locations: BeamLocation[];
  success: boolean;
}>;

Defined in: endpoints/instance.ts:20

Parameters ​

ParameterType
countryCodestring
namestring
config?AxiosRequestConfig<any, any>

Returns ​

Promise<{ locations: BeamLocation[]; success: boolean; }>

Released under the GNU Affero General Public License v3.0.