Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@orbit-love/producthunt
Advanced tools
This is a JavaScript package that can be used to integrate new Product Hunt votes and comments into your organization's Orbit workspace.
:sparkles: This is a community project. The Orbit team does its best to maintain it and keep it up to date with any recent API changes.We welcome community contributions to make sure that it stays current. :sparkles: |
---|
The application requires the following environment variables:
Variable | Description | More Info |
---|---|---|
PRODUCT_HUNT_API_KEY | API Key for your Product Hunt Application | Follow the guide above |
PRODUCT_HUNT_API_SECRET | API Secret for your Product Hunt Application | Follow the guide above |
ORBIT_API_KEY | API key for Orbit | Found in Account Settings in your Orbit workspace |
ORBIT_WORKSPACE_ID | ID for your Orbit workspace | Last part of the Orbit workspace URL, i.e. https://app.orbit.love/my-workspace , the ID is my-workspace |
Install the package with the following command
$ npm install @orbit-love/producthunt
The standard initialization of the library requires the following signature:
const OrbitProductHunt = require('@orbit-love/producthunt')
const orbitProductHunt = new OrbitProductHunt('orbitWorkspaceId', 'orbitApiKey', 'productHuntApiKey', 'productHuntApiSecret')
If you have the following environment variables set: ORBIT_WORKSPACE_ID
, ORBIT_API_KEY
, PRODUCT_HUNT_API_KEY
, and PRODUCT_HUNT_API_SECRET
then you can initialize the client as follows:
const OrbitProductHunt = require('@orbit-love/producthunt')
const orbitProductHunt = new OrbitProductHunt()
const products = await orbitProductHunt.getProducts('_phzn')
console.log(products)
const votes = await orbitProductHunt.getVotes(productId)
const prepared = await orbitProductHunt.prepareVotes(votes, 24) // 24 is the number of previous hours to get votes from
const outcome = await orbitProductHunt.addActivities(prepared)
console.log(outcome)
const votes = await orbitProductHunt.getComments(productId)
const prepared = await orbitProductHunt.prepareComments(votes, 24) // 24 is the number of previous hours to get votes from
const outcome = await orbitProductHunt.addActivities(prepared)
console.log(outcome)
To use this package you do not need to install it, but will need Node.js installed on your machine.
npx @orbit-love/producthunt --products --user=username
# Add new votes or comments
npx @orbit-love/producthunt --votes --id=projectid
npx @orbit-love/producthunt --comments --id=projectid
# Add new votes and comments
npx @orbit-love/producthunt --votes --comments --id=projectid
By default this will get the last 1 hours worth of votes, but this can be explicitly overridden:
npx @orbit-love/producthunt --votes --id=projectid --hours=12
⚡ You can set up this integration in a matter of minutes using our GitHub Actions template. It will run regularly to add new activities to your Orbit workspace. All you need is a GitHub account.
See our guide for setting up this automation
We 💜 contributions from everyone! Check out the Contributing Guidelines for more information.
This project is under the MIT License.
This project uses the Contributor Code of Conduct. We ask everyone to please adhere by its guidelines.
FAQs
Integrate Product Hunt votes into Orbit workspaces
We found that @orbit-love/producthunt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.