create account

GNS: Updated Endpoints and Launched Preview Site by freebeings

View this thread on: hive.blogpeakd.comecency.com
· @freebeings ·
$19.59
GNS: Updated Endpoints and Launched Preview Site
![image-1-2.png](https://files.peakd.com/file/peakd-hive/freebeings/23xebXh2c9QThFVqREtPhqmV11BCQF1FVa4UeiZTSzzXSCp5L4GBNpKQetE7trHjoe5UZ.png)

---

@imwatsi shares an update on the development of the Hive Global Notification System (GNS).

* GitHub: https://github.com/FreeBeings-io/hive-gns
* API: https://gns.freebeings.io/docs
* Preview: https://preview.gns.freebeings.io/

---

# Summary

* Added available modules and categories to status endpoint
* Added more granular filtering on account endpoints
* Preview site now available

---

# Status endpoint updates

The root endpoint `/` has been updated to show the following additional `app_data`:

* `categories`: notification categories to help apps categorise notifications
    * Each category contains a notification type, with the human readable description as key (e.g. Votes) and a pair of module name and notification code to uniquely identify that notification. For example `{“Votes”: “core:vot”}`.
* `available_modules`: shows the modules that are live on that GNS node

# Account based endpoints

* `/api/{account}/notifications`: to get notifications for an account, with the option to filter by one `module` and one `notif_code` (found in `app_data` above)
* `/api/{account}/notifications/category`: to get all notifications consisting of all `notif_codes` within a category. You pass a category as param, for example `Currency`.
* `/api/{account}/notifications/custom`: retrieve an account’s notifications by passing a list of `module:notif_code` pairings, effectively retrieving a custom data set, which can span multiple categories and modules.

# Preview site

We have developed a showcase frontend that you can use to interact with GNS and see how it works. More features will be added as functionality expands on the GNS API.

It is deployed here: https://preview.gns.freebeings.io.

***Example of transfer notifications for the @taskmaster4450 account:***


![Screenshot 2022-10-29 at 14.34.38.png](https://files.peakd.com/file/peakd-hive/freebeings/23uRFzviNsTzEaUA9E8rFiGRGnVww6wx6gyajRQVYQqffZwnb8zHVbA1t9GacSYj7TDCR.png)


## Login

There’s a relaxed login method available. If you just want to view data, select the “view only” option on the login modal and enter the username of the account you want to view. It can be any account on the Hive blockchain.


![Screenshot 2022-10-29 at 14.37.46.png](https://files.peakd.com/file/peakd-hive/freebeings/23ydT4YBF3STBaJRGBSPDrP3K8tW5DMtVMC94XeeRpkcBP8xHhmRfzXbLWvYPp9NoH2Av.png)


The posting key login will be used to set account preferences for your account on GNS. We are also working on adding support for other Hive login methods, like Hive Keychain.

Account preferences are still being developed and an announcement will be made when they are ready for use. 

# Issues

We are investigating an issue that’s causing the calculation of vote amount ($) to zero out in the votes notifications.

# What’s next?

* Add support for more notification types
* Add more login options on the preview site
* Integrate account preferences

---

*by @imwatsi - Co-Founder | CEO | Blockchain Developer*

---
---

# Vote for our witness

**Witness Name:** @imwatsi 



![Witness-2.png](https://files.peakd.com/file/peakd-hive/freebeings/23ymjvHFNGbUr1EPaiJs7t1kiQsF1ugf2bvt77cewpnA5C6rH5MiKir7jYmLVR5syDK1z.png)


---

**We're glad to be building on Hive.**
*Follow the @freebeings account for more updates.*
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 79 others
properties (23)
authorfreebeings
permlinkgns-updated-endpoints-and-launched-preview-site
categoryhive-139531
json_metadata"{"app":"peakd/2022.10.3","format":"markdown","description":"@imwatsi shares an update on the development of the Hive Global Notification System (GNS).","tags":["freebeings-io","hive","development","gns"],"users":["imwatsi","taskmaster4450","freebeings"],"image":["https://files.peakd.com/file/peakd-hive/freebeings/23xebXh2c9QThFVqREtPhqmV11BCQF1FVa4UeiZTSzzXSCp5L4GBNpKQetE7trHjoe5UZ.png","https://files.peakd.com/file/peakd-hive/freebeings/23uRFzviNsTzEaUA9E8rFiGRGnVww6wx6gyajRQVYQqffZwnb8zHVbA1t9GacSYj7TDCR.png","https://files.peakd.com/file/peakd-hive/freebeings/23ydT4YBF3STBaJRGBSPDrP3K8tW5DMtVMC94XeeRpkcBP8xHhmRfzXbLWvYPp9NoH2Av.png","https://files.peakd.com/file/peakd-hive/freebeings/23ymjvHFNGbUr1EPaiJs7t1kiQsF1ugf2bvt77cewpnA5C6rH5MiKir7jYmLVR5syDK1z.png"]}"
created2022-10-29 12:34:45
last_update2022-10-29 12:34:45
depth0
children8
last_payout2022-11-05 12:34:45
cashout_time1969-12-31 23:59:59
total_payout_value9.812 HBD
curator_payout_value9.778 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,426
author_reputation44,090,054,815,462
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,881,478
net_rshares30,902,008,134,514
author_curate_reward""
vote details (143)
@hivebuzz ·
Congratulations @freebeings! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@freebeings/upvoted.png?202210292035"></td><td>You received more than 400 upvotes.<br>Your next target is to reach 500 upvotes.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@freebeings) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/halloween/@hivebuzz/halloween-2022"><img src="https://images.hive.blog/64x128/https://i.imgur.com/jeLRU6l.png"></a></td><td><a href="/halloween/@hivebuzz/halloween-2022">Trick or Treat - Share your scariest story and win your Halloween badge</a></td></tr><tr><td><a href="/hive-122221/@hivebuzz/pud-202211"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hive-122221/@hivebuzz/pud-202211">Hive Power Up Day - November 1st 2022</a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
properties (22)
authorhivebuzz
permlinknotify-freebeings-20221029t205928
categoryhive-139531
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-10-29 20:59:27
last_update2022-10-29 20:59:27
depth1
children0
last_payout2022-11-05 20:59:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,395
author_reputation369,372,846,359,369
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,892,988
net_rshares0
@pizzabot ·
<center>🍕 PIZZA !
 @freebeings! The Hive.Pizza team manually upvoted your post.

<sub>Learn more at https://hive.pizza!</sub></center>
properties (22)
authorpizzabot
permlinkre-gns-updated-endpoints-and-launched-preview-site-20221029t200118z
categoryhive-139531
json_metadata"{"app": "beem/0.24.19"}"
created2022-10-29 20:01:18
last_update2022-10-29 20:01:18
depth1
children0
last_payout2022-11-05 20:01:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length134
author_reputation7,684,878,351,104
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,891,798
net_rshares0
@tobetada ·
well done, will check it out now

@tipu curate
properties (22)
authortobetada
permlinkre-freebeings-rkiqjb
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2022.10.3"}
created2022-10-29 14:21:00
last_update2022-10-29 14:21:00
depth1
children0
last_payout2022-11-05 14:21:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length46
author_reputation602,135,373,070,720
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,883,837
net_rshares0
@tobetada ·
by the way the preview site gives me an error
properties (22)
authortobetada
permlinkre-freebeings-rkiqjr
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2022.10.3"}
created2022-10-29 14:21:18
last_update2022-10-29 14:21:18
depth1
children4
last_payout2022-11-05 14:21:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation602,135,373,070,720
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,883,846
net_rshares0
@imwatsi ·
Hi, what kind of error are you encountering?
properties (22)
authorimwatsi
permlinkre-tobetada-rkiqxx
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2022.10.3"}
created2022-10-29 14:30:00
last_update2022-10-29 14:30:00
depth2
children3
last_payout2022-11-05 14:30:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation131,386,362,730,495
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,884,050
net_rshares0
@tigerdiamond ·
Thanks for the newbie token of 0.001 Hive Dollars (last spring 2022).

I am currently waiting on a sign-up at 3speak.tv and the confirmation email is not coming through. I am posting here since you appear adept on these things.

Does protonmail (Switzerland) have issues with 3speak or hive confirmation emails?

Thanks for your time, imwatsi.

🐅💎
properties (22)
authortigerdiamond
permlinkrkyuze
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2022-11-07 07:19:06
last_update2022-11-07 07:19:06
depth3
children1
last_payout2022-11-14 07:19:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length347
author_reputation0
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,132,049
net_rshares0
@tobetada ·
I am getting this message< althought maybe it's on my end



>Your client does not have permission to get URL / from this server.
properties (22)
authortobetada
permlinkre-imwatsi-rkisbp
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2022.10.3"}
created2022-10-29 15:00:15
last_update2022-10-29 15:00:15
depth3
children0
last_payout2022-11-05 15:00:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length129
author_reputation602,135,373,070,720
root_title"GNS: Updated Endpoints and Launched Preview Site"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id117,884,827
net_rshares0