Closed suffiasameera closed 7 years ago
well the place to start would be to get your listener code to receive github events. that's not something the blockchain service can help with.
as for making invokes requests, check out marbles v3. particularly the invoke chaincode proposal code.
@dshuffma-ibm Yeah, I've got the listener code in place. How do I transfer the event received from github onto my blockchain using REST apis?
Yeah, I've got the listener code in place. How do I transfer the event received from github onto my blockchain using REST apis?
On Thu, Apr 27, 2017 at 6:39 PM, dshuffma-ibm notifications@github.com wrote:
well the place to start would be to get your listener code to receive github events. that's not something the blockchain service can help with.
as for making invokes requests, check out marbles https://github.com/IBM-Blockchain/marbles. particularly the invoke chaincode proposal https://github.com/IBM-Blockchain/marbles/blob/v3.0/utils/fc_wrangler/invoke_cc.js#L34 .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IBM-Blockchain/ibm-blockchain-issues/issues/106#issuecomment-297708441, or mute the thread https://github.com/notifications/unsubscribe-auth/AYklFOR0jrsciAAH5AtA2giilhZB7Os3ks5r0JOegaJpZM4NKLw0 .
there are no REST apis for invokes in Hyperledger Fabric v1 (aka HSBN vNext). you would have to reference the marble v3 links above and use gRPC via the lastest SDK.
if you are using Hyperledger Fabric v0.6 (aka HSBN/starter) you can follow the swagger included in your service tile. Also check out the marbles v2.0 branch which uses the older discontinued IBC SDK to make the invoke calls. (marbles v3 will not work on Fabric v0.6)
@dshuffma-ibm Okay thanks! I'll try that.
I am developing a code to listen to an event from github(using webhooks) and transfer it to my chaincode on Bluemix. The blockchain should be invoked by the listener code on occurence of an event. Does anybody know how to do that? Please let me know ASAP. It's really urgent.
Thanks!