create account

Test Post ruby 04 by shadowmyst

View this thread on: hive.blogpeakd.comecency.com
· @shadowmyst · (edited)
$2.73
Test Post ruby 04
Esta es una prueba usando el API de Steemit en lenguaje Ruby que me encontraba haciendo usando radiator, mi intención era crear un post que tuviera beneficiarios para el desarrollo que tengo en mente.

Despues de varias horas de estar elaborandolo, por fin ha dado resultado:
![](https://cdn.steemitimages.com/DQmSveV1eTXiTHb8pQC4nMjmbMFhkom7yXonuHvAhFZoZC5/image.png)

La librería **Radiator** le falta mucha documentación por lo que casi todo lo desarrollado fue hecho practicamente usando ingeniería inversa. Pero es la misma motivación de resolver el "puzle" lo que me motivo a que por fin lograra mi objetivo.

Creo que lo primero que tengo que hacer, es documentar todo lo que he logrado pues me servira a futuro para lo que me encuentre laborando.

En este post logre que el beneficiario sea la cuenta de comunidad @developspanish. Tendré que estudiar mas a fondo todo lo que es la librería de radiator para poder dominarla por completo e incluso si tengo la oportunidad poner mi granito de arena para mejorarla.

El codigo en esencia planteado fue:

```ruby
tx.operations << {
  type: :comment,
  author: 'shadowmyst',
  permlink: 'test-post-ruby-4',
  title: 'Test Post ruby 04',
  body: 'Esta es una prueba usando el API de Steemit en lenguaje Ruby',
  parent_author:'',
  parent_permlink: tags[0],
  json_metadata: metadata.to_json,
}
tx.operations << {
  type: :comment_options,
  author: 'shadowmyst',
  permlink: 'test-post-ruby-4',
  max_accepted_payout: '1000000.000 SBD',
  percent_steem_dollars: 5000,
  allow_replies: true,
  allow_votes: true,
  allow_curation_rewards: true,
  extensions: Radiator::Type::Beneficiaries.new(developspanish: 500)
}
```

Claro es un fragmento del código, ya que solo son pruebas de desarrollo, una vez que todo lo tenga mejor ordenado el código sera abierto, de hecho ya tengo el repositorio preparado en github que en el avance del desarrollo publicare, aunque si ya tienen mi perfil podrán verlo directamente
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 218 others
properties (23)
authorshadowmyst
permlinktest-post-ruby-4
categorydeveloper
json_metadata{"tags":["developer","spanish","steemdev","radiator","programacion"],"app":"steemit/0.1","users":["developspanish"],"image":["https://cdn.steemitimages.com/DQmSveV1eTXiTHb8pQC4nMjmbMFhkom7yXonuHvAhFZoZC5/image.png"],"format":"markdown"}
created2018-09-22 09:42:45
last_update2018-09-22 16:57:54
depth0
children8
last_payout2018-09-29 09:42:45
cashout_time1969-12-31 23:59:59
total_payout_value2.119 HBD
curator_payout_value0.615 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,961
author_reputation201,311,630,011,358
root_title"Test Post ruby 04"
beneficiaries
0.
accountdevelopspanish
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd5,000
post_id71,931,231
net_rshares2,184,336,167,658
author_curate_reward""
vote details (282)
@cryptosharon ·
:D Yo quiero. Pero no sé Ruby.
properties (22)
authorcryptosharon
permlinkre-shadowmyst-test-post-ruby-4-20180922t152612336z
categorydeveloper
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["developer"],"users":[],"links":[],"image":[]}
created2018-09-22 15:26:15
last_update2018-09-22 15:26:15
depth1
children6
last_payout2018-09-29 15:26: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_length30
author_reputation91,921,317,551,639
root_title"Test Post ruby 04"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,957,409
net_rshares0
@jza ·
Hay una libreria de Python y otra de Javascript también asi como GoLang.
properties (22)
authorjza
permlinkre-cryptosharon-re-shadowmyst-test-post-ruby-4-20181002t001540836z
categorydeveloper
json_metadata{"tags":["developer"],"app":"steemit/0.1"}
created2018-10-02 00:15:42
last_update2018-10-02 00:15:42
depth2
children0
last_payout2018-10-09 00:15:42
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_length72
author_reputation38,031,259,748,357
root_title"Test Post ruby 04"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,445,363
net_rshares0
@shadowmyst ·
no es tan dificil aprenderlo, he visto tus codigos y eres muy buena programando, facilmente podrias aprender un nuevo lenguaje
properties (22)
authorshadowmyst
permlinkre-cryptosharon-re-shadowmyst-test-post-ruby-4-20180922t164755254z
categorydeveloper
json_metadata{"tags":["developer"],"app":"steemit/0.1"}
created2018-09-22 16:47:45
last_update2018-09-22 16:47:45
depth2
children4
last_payout2018-09-29 16:47:45
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_length126
author_reputation201,311,630,011,358
root_title"Test Post ruby 04"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,964,549
net_rshares0
@cryptosharon ·
What, si no tengo códigos públicos O.O

Mi única librería con código en Github es una librería que me robé y personalicé para mis necesidades. xD No soy tan buena.
properties (22)
authorcryptosharon
permlinkre-shadowmyst-re-cryptosharon-re-shadowmyst-test-post-ruby-4-20180922t165228322z
categorydeveloper
json_metadata{"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["developer"],"users":[],"links":[],"image":[]}
created2018-09-22 16:52:30
last_update2018-09-22 16:52:30
depth3
children3
last_payout2018-09-29 16:52:30
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_length163
author_reputation91,921,317,551,639
root_title"Test Post ruby 04"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id71,964,930
net_rshares0
@team-mexico ·
**Votado por el trail  @team-mexico
[Canal Discord](https://discordapp.com/invite/SW7wheq) ¡Te esperamos!**
<h5>Delegaciones para @team-mexico ¡Ayúdanos a crecer!</h5>

<a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=team-mexico&amp;vesting_shares=10%20SP">10 SP</a> - <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=team-mexico&amp;vesting_shares=25%20SP">25 SP</a> - <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=team-mexico&amp;vesting_shares=50%20SP">50 SP</a> - <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=team-mexico&amp;vesting_shares=100%20SP">100 SP</a> - <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=team-mexico&amp;vesting_shares=150%20SP">150 SP</a>- [Mas información.](https://steemit.com/steempress/@team-mexico/tegustaraapoyardeunaformadiferentealteam-mexico-r0k0f163qy)
![teammexico (1).png](https://cdn.steemitimages.com/DQmZuLbj9CvE86MkUWzFMh4hiFmjBNamchpbWECRu1xjnGQ/teammexico%20(1).png)
properties (22)
authorteam-mexico
permlinkre-shadowmyst-test-post-ruby-4-20180923t040547243z
categorydeveloper
json_metadata{"tags":["developer"],"users":["team-mexico"],"image":["https://cdn.steemitimages.com/DQmZuLbj9CvE86MkUWzFMh4hiFmjBNamchpbWECRu1xjnGQ/teammexico%20(1).png"],"links":["https://discordapp.com/invite/SW7wheq","https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=team-mexico&vesting_shares=10%20SP","https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=team-mexico&vesting_shares=25%20SP","https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=team-mexico&vesting_shares=50%20SP","https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=team-mexico&vesting_shares=100%20SP","https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&delegatee=team-mexico&vesting_shares=150%20SP","https://steemit.com/steempress/@team-mexico/tegustaraapoyardeunaformadiferentealteam-mexico-r0k0f163qy"],"app":"steemit/0.1"}
created2018-09-23 04:05:51
last_update2018-09-23 04:05:51
depth1
children0
last_payout2018-09-30 04:05:51
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,121
author_reputation24,313,950,176,077
root_title"Test Post ruby 04"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id72,002,783
net_rshares0