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

Getting data without using the meetup api. (This PR is not for merging!) #110

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

SachiGoto
Copy link
Member

Feature Description

Related Issue

** This is for viewing! Shouldn't be merged.

As I mentioned in the last meeting, I'm trying to call meetup API and get data without using meetup api key but I'm having trouble implementing it.

If any of you have time to take a look, please do!

Something you want to mention

Checklist before requesting a review

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Copy link

netlify bot commented Nov 14, 2023

👷 Deploy request for vantecheventfinder pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 9901c6c

@SachiGoto SachiGoto changed the title work in progress. Getting data without using the meetup api. (This PR is not for merging!) Nov 14, 2023
import axios from "axios";

const handler = async (req: NextApiRequest, res: NextApiResponse) => {
if (req.method === "POST") {
Copy link
Contributor

Choose a reason for hiding this comment

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

@SachiGoto Thank you for providing a new idea!
You are using API routes for the page router, which is one causal issue of failing to fetch data.
You can find the syntax for the App router here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah @Lada496, you are so right! I followed the documentation you attached above and write an api call differently and it worked!

Screenshot 2023-11-23 at 2 38 17 PM I wouldn't have been able to figured it out without you!

Copy link
Contributor

Choose a reason for hiding this comment

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

@SachiGoto amazing!

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