follow_api 動作確認steemCreated with Sketch.

in #japanese10 months ago

jussi.config.jsonから抜粋
image.png

follow_api.get_followers

curl -s --data '{"jsonrpc":"2.0", "method":"follow_api.get_followers", "params":{"account":"yasu","start":null,"type":"blog","limit":10}, "id":1}' https://api.steememory.com
image.png

follow_api.get_following

curl -s --data '{"jsonrpc":"2.0", "method":"follow_api.get_following", "params":{"account":"yasu","start":null,"type":"blog","limit":10}, "id":1}' https://api.steememory.com
image.png

プログラムからAPIを呼び出してみた
なぜか、params引数をJSON型で渡すとエラーが発生したので、配列で渡した
image.png