GithubHelp home page GithubHelp logo

reddit-php-sdk's Introduction

Reddit PHP SDK

The Reddit SDK is a wrapper around the Reddit OAuth 2 API: http://www.reddit.com/dev/api/oauth

Initiating Your Login Session

Before making requests to any of the methods of the Reddit SDK, you first need to instantiate a new OAuth 2 session by using your client id and client secret. You may obtain these keys by creating a new app at https://ssl.reddit.com/prefs/apps and posting the key and secret into the appropriate sections in config.php.

require_once("reddit.php");
$reddit = new reddit();

How to Build the Fullname Parameters

Frequently within these SDK methods, you will see parameters that reference the fullname or id of a message, comment, account, etc (e.g. values like t4_1kuinv). The Reddit API uses identifiers that consist of a prefix to identify the type of the fullname (e.g. t3_ or t4_), and the identifier of that thing (e.g. 1kuinv). To build a fullname of a thing, you must take its id, and add the prefix to the front.

The following is a list of prefixes that the Reddit API uses, and the type of thing that they reference:

  • t1_ : Comment
  • t2_ : Account
  • t3_ : Link
  • t4_ : Message
  • t5_ : Subreddit
  • t6_ : Award
  • t8_ : PromoCampaign

SDK Methods

Once you are authenticated, you may then make requests to any of the methods in the SDK.

Needs CAPTCHA
Checks whether CAPTCHAs are needed for API endpoints
@link http://www.reddit.com/dev/api/oauth#GET_api_needs_captcha.json

$response = $reddit->getCaptchaReqs();

Get New CAPTCHA
Gets the iden of a new CAPTCHA, if the user cannot read the current one
@link http://www.reddit.com/dev/api/oauth#POST_api_new_captcha

$response = $reddit->getNewCaptcha();
$iden = $response->json->data->iden;

Get CAPTCHA Image
Fetches a new CAPTCHA image from a given iden value
@link http://www.reddit.com/dev/api/oauth#GET_captcha_{iden}
@param string $iden The iden value of a new CAPTCHA from getNewCaptcha method

$response = $reddit->getNewCaptcha();
$iden = $response->json->data->iden;
$image = $reddit->getCaptchaImg($iden);
$im = imagecreatefromstring($image);
if ($im !== false){
    header('Content-Type: image/png');
    imagepng($im);
    imagedestroy($im);
} else {
    echo 'An error occurred';
}

Creating a New Story
Creates a new story on a particular subreddit
@link http://www.reddit.com/dev/api/oauth#POST_api_submit
@param string $title The title of the story
@param string $link The link that the story should forward to
@param string $subreddit The subreddit where the story should be added

$title = "MakerBot Releases IPad App For Easy 3D Printing";
$link = "http://makezine.com/2014/07/01/makerbot-realeases-ipad-app-for-easy-3d-printing/";
$subreddit = "technology";
$response = $reddit->createStory($title, $link, $subreddit);

Get User Information
Get data for the current user
@link http://www.reddit.com/dev/api#GET_api_v1_me

$userData = $reddit->getUser();

Get User Preferences
Get preference data for the current user based on fields provided
@link http://www.reddit.com/dev/api/oauth#GET_api_v1_me_prefs
@param string $fields A comma separated list of pref data to return. Full list at
http://www.reddit.com/dev/api/oauth#GET_api_v1_me_prefs.

$userPrefs = $reddit->getUserPrefs("num_comments,min_comment_score,private_feeds");

Get User Trophies
Get current user trophies
@link http://www.reddit.com/dev/api/oauth#GET_api_v1_me_trophies

$userTrophies = $reddit->getUserTrophies();

Get User Karma Information
Get breakdown of karma for the current user
@link http://www.reddit.com/dev/api/oauth#GET_api_v1_me_karma

$karma = $reddit->getKarma();

Get Friend Information
Get information about a specified friend
@link http://www.reddit.com/dev/api/oauth#GET_api_v1_me_friends_{username}
@param string $username The username of a friend to search for details on

$response = $reddit->getFriendInfo("jcleblanc");

Get Subreddit Relationship Information
Get relationship information for subreddits that user belongs to
@link http://www.reddit.com/dev/api/oauth#GET_subreddits_mine_{where}
@param string $where The subreddit relationship to search for. One of
subscriber, contributor, or moderator
@param int $limit The number of results to return. Default = 25, Max = 100.
@param string $after The fullname of a thing to return results after
@param string $before The fullname of a thing to return results before

$subRel = $reddit->getSubRel("subscriber", 15);

Get Messages (inbox / unread / sent)
Get messages (inbox / unread / sent) for the current user
@link http://www.reddit.com/dev/api/oauth#GET_message_inbox
@param string $where The message type to return. One of inbox, unread, or sent

$response = $reddit->getMessages("inbox");  //get inbox messages
$response = $reddit->getMessages("unread"); //get unread messages
$response = $reddit->getMessages("sent");   //get sent messages

Send a Message to Another User
Send a message to another user, from the current user
@link http://www.reddit.com/dev/api/oauth#POST_api_compose
@param string $to The name of a existing user to send the message to
@param string $subject The subject of the message, no longer than 100 characters
@param string $text The content of the message, in raw markdown

$response = $reddit->sendMessage("jcleblanc", "Look at this message!", "Hey!\n\n**[search!](http://www.google.com/)**");

Set the Read/Unread State of a Series of Messages
Sets the read and unread state of a comma separates list of messages
@link http://www.reddit.com/dev/api/oauth#POST_api_read_message
@link http://www.reddit.com/dev/api/oauth#POST_api_unread_message
@param string $state The state to set the messages to, either read or unread
@param string $subject A comma separated list of message fullnames (t4_ and the message id – e.g. t4_1kuinv).

$response = $reddit->setMessageState("read", "t4_1kuinv,t4_1kriyc");
$response = $reddit->setMessageState("unread", "t4_1kuinv,t4_1kriyc");

Block Content via Inbox
Sets a given piece of content to a blocked state via the inbox
@link http://www.reddit.com/dev/api/oauth#POST_api_block
@param string $id The full name of the content to block (e.g. t4_ and the message id – t4_1kuinv).

$response = $reddit->setContentBlock("t4_1kuinv");

Delete Link or Comment
Deletes a given link or comment created by the user
@link http://www.reddit.com/dev/api/oauth#POST_api_del
@param string $id The fullname of the link or comment to delete (e.g. t3_1kuinv for link, t1_1kuinv for comment).

$response = $reddit->deleteContent("t1_1kuinv");  //comment
$response = $reddit->deleteContent("t3_1kuinv");  //link

Edit Comment or Self Post
Edits the content of a self post or comment created by the user
@link http://www.reddit.com/dev/api/oauth#POST_api_editusertext
@param string $id The fullname of the link or comment to delete (e.g. t3_1kuinv for link, t1_1kuinv for comment).
@param string $text The raw markdown text to replace the content with.

$response = $reddit->editContent("t1_cj9qdna", "test\n\n**[test link](http://www.google.com/)**");

Set Link Reply State
Enable or disable inbox replies for a link
@link http://www.reddit.com/dev/api/oauth#POST_api_sendreplies
@param string $id The fullname of the link to set the inbox reply state for.
@param bool $state The state to set the link to. true = enable inbox replies, false = disable inbox replies.

$response = $reddit->setReplyState("t3_2bxop3", true);

Get User Subscriptions
Get the subscriptions that the user is subscribed to, has contributed to, or is moderator of
@link http://www.reddit.com/dev/api#GET_subreddits_mine_contributor
@param string $where The subscription content to obtain. One of subscriber, contributor, or moderator

$subscriptions = $reddit->getSubscriptions();

Get Page Information
Get information on a URLs submission on Reddit
@link http://www.reddit.com/dev/api#GET_api_info
@param string $url The URL to get information for

$pageInfo = $reddit->getPageInfo("http://i.imgur.com/QxdCd.jpg");

Get Subreddit Text
Get the submission text for a given subreddit
@link http://www.reddit.com/dev/api/oauth#GET_api_submit_text.json
@param string $sr The subreddit to get submission text for

$subText = $reddit->getSubText("politics");

Save Story
Save a post to your account. Save feeds:
http://www.reddit.com/saved/.xml
http://www.reddit.com/saved/.json
@link http://www.reddit.com/dev/api#POST_api_save
@param string $name the full name of the post to save (name parameter
in the getSubscriptions() return value)
@param string $category the categorty to save the post to (Reddit gold only)

$response = $reddit->savePost("t3_n6ocq");

Unsave Story
Unsave a saved post from your account
@link http://www.reddit.com/dev/api#POST_api_unsave
@param string $name the full name of the post to unsave (name parameter
in the getSubscriptions() return value)

$response = $reddit->unsavePost("t3_n6ocq");

Get Saved Categories (Reddit gold only)
Get a list of categories in which things are currently saved
@link http://www.reddit.com/dev/api/oauth#GET_api_saved_categories.json

$savedCats = $reddit->getSavedCats();

Hide, Unhide, or Report Post
Hide or unhide a post on your account
Hide, unhide, or report a post on your account
@link http://www.reddit.com/dev/api/oauth#POST_api_hide
@link http://www.reddit.com/dev/api/oauth#POST_api_unhide
@link http://www.reddit.com/dev/api/oauth#POST_api_report
@param string $state The state to set the post to, either hide, unhide, or report
@param string $name The fullname of the post to hide, unhide, or report (name
parameter in the getSubscriptions() return value)

$response = $reddit->setPostReportState("hide", "t3_n6ocq");
$response = $reddit->setPostReportState("unhide", "t3_n6ocq");
$response = $reddit->setPostReportState("report", "t3_n6ocq");

Get Posts
Get the listing of submissions from a subreddit
@link http://www.reddit.com/dev/api#GET_listing
@param string $sr The subreddit name. Ex: technology, limit (integer): The number of posts to gather
@param int $limit The number of listings to return

$response = $reddit->getListing("technology", 5);

Get Historic User Data
Get the historical data of a user
@link http://www.reddit.com/dev/api/oauth#scope_history
@param string $username the desired user. Must be already authenticated.
@param string $where the data to retrieve. One of overview,submitted,comments,liked,disliked,hidden,saved,gilded

$response = $reddit->getHistory("USERNAME", "liked");

Get Raw JSON
Get Raw JSON for a reddit permalink
@param string $permalink permalink to get raw JSON for

$response = $reddit->getRawJSON("/r/funny/comments/12ma0a/this_guy_showed_up_at_our_party_last_night_didnt/");
//get the JSON for the top technology post
$response1 = $reddit->getListing("technology", 1);
$response2 = $reddit->getRawJSON($response1->data->children[0)]->data->permalink);

Search Content Within Subreddit
Get the listing of submissions from a subreddit
@link https://www.reddit.com/dev/api#GET_search
@param string $query The query to search for
@param int $count The number of results to return
@param string $t The timeframe of results to return, one of (hour, day, week, month, year, all)
@param string $after The fullname of a thing to search for results after
@param string $before The fullname of a thing to search for results before

$response = $reddit->search("cat", "pics", 20);

Search Subreddits
Get the listing of subreddit from a search
@link http://www.reddit.com/dev/api/oauth#GET_subreddits_search
@param string $query The query to search for
@param int $count The number of results to return
@param string $after The fullname of a thing to search for results after
@param string $before The fullname of a thing to search for results before

$response = $reddit->search_sr("penguins", 20);

Get All Subreddits
Get results for all subreddits combined, sorted by new / popular
@link http://www.reddit.com/dev/api/oauth#GET_subreddits_{where}
@param string $where The fetch method, either new or popular
@param int $limit The number of results to return (max 100)
@param string $after The fullname of a post which results should be returned after
@param string $before The fullname of a post which results should be returned before

$response = $reddit->getAllSubs("new", 5);
$response = $reddit->getAllSubs("popular", 45);

Add Comment
Add a new comment to a story
@link http://www.reddit.com/dev/api/oauth#POST_api_comment
@param string $name The full name of the post to comment (name parameter
in the getSubscriptions() return value)
@param string $text The comment markup

$response = $reddit->addComment("t3_jp2k7", "Hey!\n\n**[search!](http://www.google.com/)**");

Add Vote
Adds a vote (up / down / neutral) on a story
@link http://www.reddit.com/dev/api/oauth#POST_api_vote
@param string $name The full name of the post to vote on (name parameter
in the getSubscriptions() return value)
@param int $vote The vote to be made (1 = upvote, 0 = no vote,
-1 = downvote)

$response = $reddit->addVote("t3_n6ocq", 1);

Set or Clear a User’s Flair in a Subreddit
Set or clear a user’s flair in a subreddit
@link http://www.reddit.com/dev/api/oauth#POST_api_flair
@param string $subreddit The subreddit to use
@param string $user The name of the user
@param string $text Flair text to assign
@param string $cssClass CSS class to assign to the flair text

$response = $reddit->setFlair("motorcycles", "jcleblanc", "ZZR600", "kawasaki");

Download the Flair Assignments of a Subreddit
Download the flair assignments of a subreddit
@link http://www.reddit.com/dev/api/oauth#GET_api_flairlist
@param string $subreddit The subreddit to use
@param int $limit The maximum number of items to return (max 1000)
@param string $after Return entries starting after this user
@param string $before Return entries starting before this user

$response = $reddit->getFlairList("motorcycles", 100, "t2_39qab", "t2_39qab");

Post a CSV File of Flair Settings to a Subreddit
Post a CSV file of flair settings to a subreddit
@link http://www.reddit.com/dev/api/oauth#POST_api_flaircsv
@param string $subreddit The subreddit to use
@param string $flairCSV CSV file contents, up to 100 lines

$response = $reddit->setFlairCSV("motorcycles", "jcleblanc,ZZR600,kawasaki\n...");

Other Resources

The following are additional resources available for this SDK

License

Copyright © 2015 Jonathan LeBlanc (http://jcleblanc.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

reddit-php-sdk's People

Contributors

brobin avatar deadfish2000 avatar futilefreedom avatar jcleblanc avatar nsideras avatar samnabi avatar stuartfeldt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reddit-php-sdk's Issues

Add all mysubreddits endpoints

/api/v1/me/friends/username
/api/v1/me/karma
/subreddits/mine/contributor
/subreddits/mine/moderator
/subreddits/mine/subscriber
/subreddits/mine/where

Add all history endpoints

/user/username/comments
/user/username/disliked
/user/username/gilded
/user/username/hidden
/user/username/liked
/user/username/overview
/user/username/saved
/user/username/submitted
/user/username/where

Private Messages???

Are you likely to add in the PrivateMessages functions?

Specifically get_inbox(), get_mentions(), get_sent(), get_unread() and send_message()??

Is this reddit-php-sdk repo abandoned?

The repo itself hasn't been updated in over a year and there are many outstanding pull requests. Few pulls have ever been processed and never pull requests by other authors.

I have emailed @jcleblanc and tweeted him, to no avail.

Jonathan doesn't seem to have done anything on git since 3-May-2014.

I am willing to process all the outstanding pull reqs and merge/rebase as many of the changes as I can into the project. Then I'll probably add new code (I have inbox/private message requirements). I'm also willing to maintain it, possibly in cooperation with others. I'm also open to just generally helping with this git.

Add all modwiki endpoints

/api/wiki/alloweditor/add
/api/wiki/alloweditor/del
/api/wiki/alloweditor/act
/api/wiki/hide
/api/wiki/revert
/wiki/settings/page
/wiki/settings/page

Add all Reddit Gold Endpoints

Completed:
/api/saved_categories.json

Left:
/api/store_visits
/api/v1/gold/gild/fullname
/api/v1/gold/give/username

"403 Forbidden" on simple identity request

The SDK fails on a simple identity request on PHP AppEngine.

static $SCOPES = 'identity';

require_once("reddit.php");
$reddit = new reddit(); 
print_r($reddit);
$userData = $reddit->getUser();



403 Forbidden
Request forbidden by administrative rules. 

Add all subscribe endpoints

/api/filter/filterpath
/api/filter/filterpath
/api/filter/filterpath
/api/filter/filterpath/r/srname
/api/filter/filterpath/r/srname
/api/multi/multipath
/api/multi/multipath
/api/multi/multipath
/api/multi/multipath/copy
/api/multi/multipath/r/srname
/api/multi/multipath/r/srname
/api/multi/multipath/rename
/api/subscribe
/api/v1/me/friends/username
/api/v1/me/friends/username

you are not allowed to do that — invalid redirect_uri parameter.

Hi!

I'm working on a script that will create a new story on one of my subreddits. Right now I get stuck with the message from reddit:

you are not allowed to do that — invalid redirect_uri parameter.

Do you happen to know what are the specifications of a valid redirect uri ? I can't seem to find anything.

Thank you!
alex.

Add all read endpoints

/about/banned
/about/contributors
/about/moderators
/about/modqueue
/about/reports
/about/spam
/about/unmoderated
/about/wikibanned
/about/wikicontributors
/about/location
/about/where
/api/filter/filterpath
/api/filter/filterpath/r/srname
/api/info
/api/morechildren
/api/multi/mine
/api/multi/multipath
/api/multi/multipath/description
/api/multi/multipath/description
/api/multi/multipath/r/srname
/api/recommend/sr/srnames
/api/search_reddit_names.json
/api/subreddits_by_topic.json
/api/v1/me/blocked
/api/v1/me/friends
/api/v1/user/username/trophies
/by_id/names
/comments/article
/controversial
/hot
/new
/prefs/blocked
/prefs/friends
/prefs/where
/r/subreddit/about.json
/random
/search
/subreddits/new
/subreddits/popular
/subreddits/search
/subreddits/where
/top
/user/username/about.json
/sort

is it possible to disable oauth?

Just wondering.. I was previously using another api wrapper found on github but I like the simplicity of yours better.. however I only mean to use it to make calls that aren't in the context of a logged in user.. such as searching for new/hot/trending posts in various subreddits. I understand you can make these without oauth as I was just making them. I understand oauth allows for higher rate limits but the non-oauth ones are ok for my current uses. I did get yours working with oauth but it's adding a layer of complexity and if there's an easy way to do without it and go back to non-oauth api calls (for those that allow it) then I'd like to know how.

Oh and.. I know some people don't like composer for some reason but.. well I do so if you ever decide to add your awesome project to composer you'll make me and some others happy I guess.

Lastly.. any chance you can use an array instead of constants in your config.php? Not a fan of constants especially those with common names as they can easily create conflicts in a big application.

Thanks and keep up the fine work!

getUser() Method is returning empty

When I try to login, I'm taken to Reddit, asked for permissions, I click on Accept and then I'm taken to my PHP file where I'm trying to display user info but nothing is shown. Here's the code:

getUser(); print_r($userData); ?>

You can test it here: http://alienreader.com/login2.php

Any help would be great. Thx in advance!

Result of functions are always NULL

<?php

require_once 'reddit.php';

$reddit = new reddit();
$userData = $reddit->getUser();

$response = $reddit->getListing("technology", 5);

var_dump($userData);
var_dump($response);

?>

And whatever I do, my result is always NULL. Can someone explain to me what I do wrong here, please?

Constructor returning a value... ?

Hello!
Since when Constructor can return a value? or i missed something during these years?

  public function __construct($username = null, $password = null){
    $urlLogin = "{$this->apiHost}/login/$username";

    $postData = sprintf("api_type=json&user=%s&passwd=%s",
                        $username,
                        $password);
    $response = $this->runCurl($urlLogin, $postData);

    if (count($response->json->errors) > 0){
        return "login error";
    } else {
        $this->modHash = $response->json->data->modhash;
        $this->session = $response->json->data->cookie;
        return $this->modHash;
    }
  }

Add all modconfig endpoints

/api/delete_sr_header
/api/delete_sr_img
/api/site_admin
/api/subreddit_stylesheet
/api/upload_sr_img
/r/subreddit/about/edit.json
/stylesheet

Null results on every call

So I've installed this package into my project, set up and configured my client ID, client secret, and redirect to my VM url but every time I try to make a call using this wrapper I first have to click the "allow" button on the redditAPI authorization page and after that the response is always null.

Is there a reason why I have to click the "allow" button every time I try to make a call? I also don't know why the results are returning null every time, maybe this package is broken? I've tried a number of the simple example calls but they all return null.

Any help would be much appreciated, thanks.

Add to composer and follow PSR-4

It'd be great if this package was available as a repository to use in Composer without having to manually build a package definition, also, set up the package in such a way that it autoloads would be nice.

Error in error checking

Via Alex Sincai:

On line 31, it should be

if (count($response->json->errors) > 0){

rather than

if (count($response->errors) > 0){

Add all modposts endpoints

/api/approve
/api/distinguish
/api/ignore_reports
/api/marknsfw
/api/remove
/api/set_contest_mode
/api/set_subreddit_sticky
/api/unignore_reports
/api/unmarknsfw

Application Only OAuth

I have a script that posts a story to one of my subreddits. At some point this script should be launched via a cronjob.

This is where I'm stuck: my script works inside a user context, but not without manual authorization, which is necessary for the cron workflow.

I've read this page on the reddit API wiki, but do not understand how to make it work using the php SDK.

Create Story

hello creating a story doesnt work dont know why ?!

Doesnt work at all

This software does not work with reddit so far. Just returns null when trying any of the listed calls in documentation.

strlen() expects parameter 1 to be string

I just tried doing a test with it, and I'm getting this error on a successful login.

Code as follows:

<?php
require_once('redditapi.php');

$reddit = new reddit();

$message = '';

$body = '';

if(isset($_POST['username'])) {
    $username = trim($_POST['username']);
    $password = trim($_POST['password']);

    if($reddit->login($username, $password)) {
        $message = 'logged in!';
        $body = var_dump((array)$reddit->getUser());
    }else {
        $message = 'Could not login';
    }
}
?>

<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<p><?= $message; ?></p>
    <form action="" method="post">
        <label>username: <input type="text" name="username" id="" /></label> <br />
        <label>password: <input type="text" name="password" id="" /></label> <br />
        <input type="submit" value="Login" />
    </form>
    <?= $body; ?>
</body>
</html>

Add all modflair endpoints

/api/clearflairtemplates
/api/deleteflair
/api/deleteflairtemplate
/api/flair
/api/flairconfig
/api/flaircsv
/api/flairlist
/api/flairtemplate

trying to get property of non-object

This is what I get:
Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 33

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 33

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 36

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 36

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 36

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 37

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 37

Notice: Trying to get property of non-object in C:\xampp\htdocs\simple_blog\reddit.php on line 37

Curl is installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.