Use new API for profiles/events
This commit is contained in:
parent
fd12f5e5ba
commit
4e89ba6775
@ -18,12 +18,12 @@ public class NostrServicesClient
|
|||||||
|
|
||||||
public async Task<CompactProfile?> Profile(string id)
|
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)
|
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)
|
public async Task<LinkPreviewData?> LinkPreview(string url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user