Use new API for profiles/events

This commit is contained in:
kieran 2024-08-19 19:59:47 +01:00
parent fd12f5e5ba
commit 4e89ba6775
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -18,12 +18,12 @@ public class NostrServicesClient
public async Task<CompactProfile?> Profile(string id)
{
return await Get<CompactProfile>(HttpMethod.Get, $"/api/v1/export/profile/{id}");
return await Get<CompactProfile>(HttpMethod.Get, $"https://nostr-rs.api.v0l.io/event/0/{id}");
}
public async Task<NostrEvent?> Event(string id)
{
return await Get<NostrEvent>(HttpMethod.Get, $"/api/v1/export/{id}");
return await Get<NostrEvent>(HttpMethod.Get, $"https://nostr-rs.api.v0l.io/event/{id}");
}
public async Task<LinkPreviewData?> LinkPreview(string url)