create account

Go-Hive v0.2.0: Get Blog Data by jrswab

View this thread on: hive.blogpeakd.comecency.com
· @jrswab · (edited)
$1.53
Go-Hive v0.2.0: Get Blog Data
![Gopher drawing by Rene French](https://i.ibb.co/8d4PLgq/go-hive-update-v0-2-0.png)

This update contains the condenser methods used to access an account's blog. The only one left out is `get_tags_used_by_author` since "api.hive.blog" does not have the tags plugin enabled.

## Example Usage:
```go
package main

import (
    "fmt"
    a "git.sr.ht/~jrswab/go-hive"
)
func main () {
    c := a.NewClient()

    blog, err := c.GetBlog("jrswab", 0, 1)
    if err != nil {
        fmt.Println(err)
    }
    // Returns the body of the first post returned
    fmt.Println(blog[0].Body)
}
```

## v0.2.0 Changelog
### Added
- Condenser Methods:
  - `GetBlog`
  - `GetBlogEntries`
  - `GetFollowCount`
  - `GetFollowers`
  - `GetContent`
  - `GetContentReplies`
  - `GetRebloggedBy`
  - `GetReblogs` (get_blog_authors)
- Unit tests for `blog.go` methods

## Contributing:
### The preferred contribution approach:
1. Fork
2. Make a new branch
3. Write code
4. Run the unit tests
5. Update and add tests as needed
6. Commit to your branch.
7. Switch back to master
8. `git pull origin master`
9. `git merge [your branch name]` and resolve any conflicts
10. `git send-email --to="~jrswab/go-hive-dev@lists.sr.ht" HEAD^`
    - This creates and sends a patch with your updates.
 
Please use the [Sourcehut Email Etiquettes](https://man.sr.ht/lists.sr.ht/etiquette.md) when sending patches.
Using `git send-email` will take care of most of the etiquette for you.

To learn how to send patches with `git send-email` check out the tutorial at [git-send-email.io](https://git-send-email.io/)

---
The project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), is licensed under the [BSD 3-Clause License](https://choosealicense.com/licenses/bsd-3-clause/), and all development is located at [git.sr.ht/~jrswab/go-hive](git.sr.ht/~jrswab/go-hive).
👍  , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorjrswab
permlinkgo-hive-v0-2-0-get-blog-data
categoryhive-139531
json_metadata"{"app":"peakd/2020.03.14","format":"markdown","description":"This update contains the condenser methods used to access an account's blog.","tags":["hivedev","technology","tech","dev","hive"],"users":["lists"],"links":["https://man.sr.ht/lists.sr.ht/etiquette.md","https://git-send-email.io/","https://semver.org/spec/v2.0.0.html","https://choosealicense.com/licenses/bsd-3-clause/","https://git.sr.ht/~jrswab/go-hive"],"image":["https://i.ibb.co/8d4PLgq/go-hive-update-v0-2-0.png"]}"
created2020-04-10 16:57:39
last_update2020-04-10 18:22:09
depth0
children1
last_payout2020-04-17 16:57:39
cashout_time1969-12-31 23:59:59
total_payout_value0.770 HBD
curator_payout_value0.764 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,853
author_reputation46,062,246,679,771
root_title"Go-Hive v0.2.0: Get Blog Data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,788,245
net_rshares5,613,361,791,963
author_curate_reward""
vote details (26)
@lukmarcus ·
$0.22
Hi! [Go-Hive](https://hiveprojects.io/projects/p/go-hive/) was added to HiveProjects.io - directory of apps, sites & tools created for Hive. You can also join [Hive Projects Community](https://peakd.com/c/hive-192847/created) to be on time with all new informations!
[![](https://files.peakd.com/file/peakd-hive/lukmarcus/P1OQsTTr-image.png)](https://hiveprojects.io/)
👍  
properties (23)
authorlukmarcus
permlinkre-jrswab-q9bd20
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2020.04.5"}
created2020-04-24 22:26:57
last_update2020-04-24 22:26:57
depth1
children0
last_payout2020-05-01 22:26:57
cashout_time1969-12-31 23:59:59
total_payout_value0.108 HBD
curator_payout_value0.109 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length368
author_reputation6,879,451,798,530
root_title"Go-Hive v0.2.0: Get Blog Data"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,983,479
net_rshares432,347,218,170
author_curate_reward""
vote details (1)