Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Arcade to 1.0 #93

Merged
merged 3 commits into from
Jan 31, 2025
Merged

Conversation

nbarbettini
Copy link
Contributor

This PR:

  • Updates arcadejs to the latest release (1.0.0)
  • Fixes breaking changes in client methods/fields
  • Adds link for getting an API key to Arcade setup section
  • Clarifies that auth requires either Arcade, or your own Twitter/LinkedIn apps

@baskaryan baskaryan requested a review from bracesproul January 31, 2025 20:05
Copy link
Member

@bracesproul bracesproul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, im going to clone locally & run my tests and granted it all works I'll approve & merge.

thanks for doing this!!

README.md Outdated
Comment on lines 209 to 216
Regardless of the method you choose, you will need to set these environment variables in your `.env` file:

- `TWITTER_USER_ID` - The ID/email of the Twitter account you want to use to post to Twitter.
- `LINKEDIN_USER_ID` - The ID/email of the LinkedIn account you want to use to post to LinkedIn.

#### Arcade setup

Create an Arcade account [here](https://www.arcade.dev). After you register, [get an Arcade API key](https://docs.arcade.dev/home/quickstart?lang=typescript). Set this value as `ARCADE_API_KEY` in your `.env` file.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Regardless of the method you choose, you will need to set these environment variables in your `.env` file:
- `TWITTER_USER_ID` - The ID/email of the Twitter account you want to use to post to Twitter.
- `LINKEDIN_USER_ID` - The ID/email of the LinkedIn account you want to use to post to LinkedIn.
#### Arcade setup
Create an Arcade account [here](https://www.arcade.dev). After you register, [get an Arcade API key](https://docs.arcade.dev/home/quickstart?lang=typescript). Set this value as `ARCADE_API_KEY` in your `.env` file.
#### Arcade setup
Create an Arcade account [here](https://www.arcade.dev). After you register, [get an Arcade API key](https://docs.arcade.dev/home/quickstart?lang=typescript). Set this value as `ARCADE_API_KEY` in your `.env` file.
Then, you will need to set these environment variables in your `.env` file:
- `TWITTER_USER_ID` - The ID/email of the Twitter account you want to use to post to Twitter.
- `LINKEDIN_USER_ID` - The ID/email of the LinkedIn account you want to use to post to LinkedIn.

Using the linkedin/twitter api directly doesn't req this since you set the access tokens/user urn (linkedin) for the specific user you authorized in the .env

Copy link
Member

@bracesproul bracesproul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worked like a charm. thanks!

@bracesproul bracesproul merged commit 930c216 into langchain-ai:main Jan 31, 2025
6 checks passed
@nbarbettini nbarbettini deleted the nb-fix-arcade-1.0.0 branch January 31, 2025 20:51
@nbarbettini
Copy link
Contributor Author

Thanks for the review and the catch @bracesproul!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants