109
Views
1
Comments
[GitHub Connector] View github file when click button
Question
github-connector
Web icon
Forge asset by André Vieira

I would like to create a click button to view github file directly in outsystems.

I have a github account, and I know the repository and file that I like to view.

Is it possible to do that in outsystems?

Any samples.

Thanks


2018-12-24 10-34-11
Márcio Menezes

Hello,

You can start by checking the demo that is available on the forge: https://www.outsystems.com/forge/component-overview/2420/github-demo

If you use https://yourpersonalenv.outsystemscloud.com/GitHubDemo/Repositories.aspx?owner=xxxx, being xxxx the owner username of the repository where the file is, you'll get a list of repositories and then you can dig in until you find the list of files.

The method GetContent will return you a base 64 string (if the type of response is "file") that you can convert into a binary and download using the download widget of Outsystems.

Kind regards,

Márcio Menezes

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.