Skip to content

Instantly share code, notes, and snippets.

Avatar

Jamie Introcaso JIntrocaso

View GitHub Profile
View ipifyAPICalls.ts
public getAPIEndpoint() {
this.httpClient.get("https://api.ipify.org?format=json").subscribe(response => {
console.log(response);
this.ipAddress = response["ip"];
});
}
public getGeoEndpoint() {
this.httpClient.get("https://geo.ipify.org/api/v1?apiKey=" + this.apiKey).subscribe(response => {
console.log(response);