GithubHelp home page GithubHelp logo

roeun / sdfeedparser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sebyddd/sdfeedparser

0.0 1.0 0.0 344 KB

Objective-C parser for the JSON API plugin for Wordpress. (https://wordpress.org/plugins/json-api/)

License: MIT License

sdfeedparser's Introduction

SDFeedParser

SDFeedParser

Objective-C parser for the JSON API (https://wordpress.org/plugins/json-api/) plugin for Wordpress

Installation

  1. To install this library, simply copy the 'SDFeedParser' folder into your project, and import it using:

     #import "SDFeedParser.h"
    
  2. You will also need AFNetworking in order to use this library. You can find it here: https://github.com/AFNetworking/AFNetworking

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SDFeedParser in your projects. See the "Getting Started" guide for more information.

Podfile

    platform :ios, '7.0'
    pod "SDFeedParser", "~> "0.1"

How to use

   SDFeedParser *parser = [[SDFeedParser alloc]init];
   [parser parseWithURL:@"http://yourblogURL.com/?json=1" withCompletion:^(NSArray *postsArray) {
            NSLog(@"%@", postsArray);
    }];

Available properties

SDPost:

    @property (nonatomic) NSInteger ID;
    @property (nonatomic) NSString *URL;
    @property (nonatomic) NSString *slug;
    @property (nonatomic) NSString *title;
    @property (nonatomic) NSString *plainTitle;
    @property (nonatomic) NSString *thumbnailURL;
    @property (nonatomic) NSString *status;
    @property (nonatomic) NSString *content;
    @property (nonatomic) NSString *plainContent;
    @property (nonatomic) NSInteger contentReadingMinutes;
    @property (nonatomic) NSString *excerpt;
    @property (nonatomic) NSString *date;
    @property (nonatomic) NSString *lastModifiedDate;
    @property (nonatomic) NSArray *categoriesArray;
    @property (nonatomic) NSArray *tagsArray;
    @property (nonatomic) NSDictionary *authorInfo;
    @property (nonatomic) NSArray *commentsArray;
    @property (nonatomic) NSInteger commentsCount;
    @property (nonatomic) NSString *commentsStatus;

SDComment:

    @property (nonatomic) NSInteger ID;
    @property (nonatomic) NSString *name;
    @property (nonatomic) NSString *url;
    @property (nonatomic) NSString *date;
    @property (nonatomic) NSString *content;
    @property (nonatomic) NSInteger parent;

SDCategory:

    @property (nonatomic) NSInteger ID;
    @property (nonatomic) NSString *slug;
    @property (nonatomic) NSString *title;
    @property (nonatomic) NSString *description;
    @property (nonatomic) NSInteger parent;
    @property (nonatomic) NSInteger postsCount;

SDTag:

    @property (nonatomic) NSInteger ID;
    @property (nonatomic) NSString *slug;
    @property (nonatomic) NSString *title;
    @property (nonatomic) NSString *description;
    @property (nonatomic) NSInteger postsCount;

##License

Usage is provided under the MIT License. See LICENSE for the full details.

sdfeedparser's People

Contributors

sebyddd avatar

Watchers

 avatar

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.