Actor

apify/example-act-in-gist

  • Builds
  • latest 0.0.1 / 2018-01-17
  • Created 2018-01-17
  • Last modified 2018-09-12
  • grade 3

Description

Example of Apify Actor act stored in a GitHub Gist. This is useful for small projects that have multiple source code files, where creating a full Git repository does not make sense.


API

To run the actor, send a HTTP POST request to:

https://api.apify.com/v2/acts/apify~example-act-in-gist/runs?token=<YOUR_API_TOKEN>

The POST payload will be passed as input for the actor. For more information, read the docs.


Example input

Content type: application/json; charset=utf-8

{ "hello": 123 }

Readme

This is an example of Apify Actor act that is stored as GitHub Gist. Gist might be useful if your act has multiple source code files but you don't want to create a full Git repository for it. All files of this Gist are provided under Apache 2.0 license.

Just beware that whenever you edit the Gist, you'll need to rebuild the act.

Are you missing anything? Something not clear? Please let us know at support@apify.com

act-in-gist-example.js

Contains the source code of the act in Node.js 8.

package.json

The file used by NPM to maintain meta-data about the package, such as list of dependencies. See NPM docs for more details.

Dockerfile

Contains instructions for Docker how to build the image for the act. For more information, see Dockerfile reference.

README.md

The readme file is used to generate a long description of the act that is displayed in the Apify library as well as on the project's GitHub page.