wp_remote_get doesn’t work with secure connections https?

Ok, just noticed that you’re wrapping the URL in single quotes, so the $username variable won’t get interpreted. Try this instead:

wp_remote_get('https://twitter.com/statuses/user_timeline/'. $username .'.json');

Or use double quotes instead of single.


Leave a Comment