I wanna create a WebHook to integrate with a server GitHub Enterprise. I want to use WCF to create this service, but I don't found a tutorial or step by step. This is my first work with WebHooks, and I did not found the model of the structure of the service to integrate with GitHub.
Anybody have a solution, example or the way to developer this? What methods, parameters and names I need use? The documentation of GitHub is not clear to me.
Thanks.
The methodology to create webhooks in the UI on earlier versions of GitHub Enterprise is very similar to GitHub.com and is now identical on GitHub Enterprise 11.10.340 and later.
Using the UI is a case of browsing to the repository in question, select the "Settings" icon on the right, select "Service Hooks" and configure the appropriate hook. (The wording has changed slightly in GitHub Enterprise 11.10.340 to match what you see on GitHub.com).
If there isn't already a predefined service, a standard "WebHook URLs" hook should do the trick. This will POST the push payload to the URL you enter here.
You can also create the webhook using the API. If you're not running GitHub Enterprise 11.10.340 or later, you can refer to our archived documentation at https://developer.github.com/enterprise/11.10.320/, specifically https://developer.github.com/enterprise/11.10.320/v3/repos/hooks/ for how to use the API to create a webhook. If you're running GitHub Enterprise 11.10.340 or later the documentation at https://developer.github.com/webhooks/ applies to these versions of GitHub Enterprise.
You'd then need to ensure the recipient of this POST knows how to process the payload and act upon it.
A good service to use to check the payload from any webhook is http://requestb.in/.
Related
I developing an app and basicly if an user loaded a product in the storefront it should send a request to my server. So i thought thats possible with webhooks. But unfortunately there is no webhook for this case.
The closest thing i could find is the product.written webhook but that seems useless for my case.
Anyone has an idea how i could realize my request?
I use Shopware 6.4.11.1 as development enviroment.
Although I have not found any appropriate webhook in the webhook events reference, this may be doable in a slightly different way, without using the Shopware App Webhook mechanic.
In the Shopware documentation there are shown ways to add Storefront scripts to an app. There is even an example for product-page-loaded. You would be able to execute some of your own code in there, but honestly I have not tried to ping external servers like this and I can't tell you that this will surely work.
You could also potentially add some custom JS code that pings your server with the appropriate info.
Unfortunately I don't think you can compel Shopware to send a request from its backend on a ProductPageLoadedEvent
I'm trying to integrate a Dialogflow (V2) chatbot with Twitter, but in the Twitter integration modal on Dialogflow I received the error 'Bot was not started' (which doesn't really tell me why).
I tried to recreate the integration using Dialogflow's migration documentation: https://dialogflow.com/docs/integrations/twitter. In the documentation it mentions "Note: The environment must be named "dev". This is a restriction of the beta webhook API.". However I can't use the same "dev" label anymore on Twitter because it was previously used by the deleted dev environment (my first try)...
How can I solve this?
Thanks!
It sounds like there's a couple things going on here. To start, you shouldn't need to use "dev" as the environment name anymore. This has recent changed and been opened up, we just need to update the docs.
The "Bot was not started" message sounds like it's referring to starting the bot in the Twitter integration screen in Dialogflow.
Go to Integrations > Twitter and enter all of the information for your bot. Then click the START button at the bottom of that screen.
I'm planning on building a developer API similar to what Uber and Yo have done. Is it possible to build such API if my app's backend is powered by parse.com? I don't want my custom API pointing to parse, but instead my own site.
I'm planning on using ruby, and was wondering if there would be any limitations over other options (not sure what options I have). Thanks
I'm not sure if it is possible using ruby, but I know it's definitely possible to build your own REST API.
We have decided to go a bit further and wrote a parse-angular seed project for developing web apps. It can be found here.
After you pulled it, do a npm install
As usual,
cloud code should go into cloud/main.js
express code: cloud/app.js
angular code: cloud/public/js/
Note that: You will need to change your AppId and AppKey in
config/global.json
cloud/public/js/app.js
As for custom apis, you can define your own in cloud/routes/api.js.
At this point you should have a nice parse-angular project set up and good to go.
If there's anything wrong, please feel free to open a pull request. :)
We are hoping to upload a chrome extension and publish it as unlisted (as the visibility option) via the Chrome Webstore Api.
So far we have been able to upload but not publish using this documentation -- we can't publish because extensions have a whole bunch of required parameters (like a screenshot or small-tile image) which we can't figure out how to attach. We are really hoping that one of these parameters will be visibility, and we can set it to "unlisted".
If any kind soul has any knowledge of the Chrome Webstore API, or how to set these parameters, our whole development team would be very appreciative.
The documentation on this is very sparse: https://developer.chrome.com/webstore/webstore_api/items/update
Quoting Using the Chrome Web Store Publish API:
Note: Currently, there is no API for setting an item’s metadata, such as description. This has to be done manually in the Chrome Web Store Developer Dashboard. More detail about the Web Store API can be found here.
So, to the question whether you can supply all the metadata programmatically - the answer is "no". And the Publish method does not seem to support "unlisted".
How to trigger build and add web hook on it via REST API? Or simply, how to add web hook on build by ID via API?
I viewed all the TC REST documentation but didn't find the answer.
Thank you.
There is documentation for triggering a build via REST API since TeamCity 8.1 here. Basically, you need to sent a POST request to http://[server]/httpAuth/app/rest/buildQueue with the build node as the content. There are build node examples in the documentation. If you're using an earlier version of TeamCity, you can trigger a build via script by following the instructions here.
I haven't worked with it, but there's a plugin, tcWebHookTrigger, that you can use to make working with TeamCity's inbound API calls easier here and it has documentation that should be able to get you started.