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

Add PHP samples #37

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add PHP samples #37

wants to merge 5 commits into from

Conversation

mhawry
Copy link

@mhawry mhawry commented Jun 7, 2021

Added PHP sample code.

@github-actions
Copy link

github-actions bot commented Jun 7, 2021

CLA Assistant Lite bot All Contributors have signed the CLA. If the commit check is not passing, a maintainer must go the Checks tab of this PR and rerun the GitHub Action.

@mhawry
Copy link
Author

mhawry commented Jun 7, 2021

I have read the CLA Document and I hereby sign the CLA

@mhawry
Copy link
Author

mhawry commented Jun 7, 2021

recheck

@andypiper
Copy link
Contributor

Thank you for these submissions! It might take me a little while to check over them (my PHP skills are a little rusty, but this is a good opportunity to refresh them!). Much appreciated.

@andypiper andypiper self-requested a review June 9, 2021 13:32
@andypiper andypiper self-assigned this Jun 9, 2021
@mhawry
Copy link
Author

mhawry commented Jun 11, 2021

@andypiper thanks! Let me know if you have any questions/concerns.

@mhawry
Copy link
Author

mhawry commented Jan 5, 2022

Hello @andypiper just wondering if you had a chance to look into this. Thanks!

@mhawry
Copy link
Author

mhawry commented Jan 26, 2023

I just added a few more PHP samples. Is there someone at Twitter who can review this pull request?

Thanks!

@andypiper andypiper removed their assignment Feb 12, 2023
@morrow95
Copy link

Anyone check these to make sure they actually work? None of the examples work for me, all return the exception message without any values for $errors, $status_code.

Yes, I changed the appropriate values for tokens, username, id, etc. It is an existing app in my account so no reason it shouldn't work.

@mhawry
Copy link
Author

mhawry commented Apr 22, 2023

@morrow95 I just tested again and it works for me.

Can you please share the code you are using and the error you are getting?

@morrow95
Copy link

@mhawry Apologies. Turned out it was partly due to not having a cacert.pem on my local dev. However, I did notice, atleast for the ones I was interested in using, I couldn't just use the bearer token as in the code - it required the actual oauth.

@mhawry
Copy link
Author

mhawry commented Apr 23, 2023

@morrow95 which of the samples required OAuth authorization? I'll look into it.

Copy link
Contributor

@andypiper andypiper left a comment

Choose a reason for hiding this comment

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

commenting to remove myself as reviewer.

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.

3 participants