Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added authentication for the posts controller in the form of a private authenticate() method. #3

Open
wants to merge 30 commits into from

9 participants

@Achillefs

The authentication method utilizes the 'author' and 'user_password' query vars if they exist to try and authenticate the user. If authentication fails you get an error, and if the variables do not both exist the method fall back to the previously implemented functionality.

crgwbr and others added some commits
@crgwbr crgwbr added support for post_status query param. Example: get_category_post…
…s/?slug=faq&post_status=future
c3a90a5
@crgwbr crgwbr Added support for category_id, category_slug, tag_id, and tag_slug as…
… query params from any list method (get_tag_posts, get_category_posts, etc.). This allows more fine contorl over posts queries.
2097ca8
@supercleanse supercleanse Added multisite and users controllers... 021f05b
Achilles Charmpilas posts controller now supports simple authentication via the 'author' …
…and 'user_password' query values
7d1f8b4
schpet and others added some commits
@schpet schpet make JSON_API_CONTROLLERS really set default controllers 66befb4
@edavis10 edavis10 Support setting 'date' when saving a Post ac0743e
@jbergen jbergen updated readme to markdown 849072c
@jbergen jbergen added language types to code blocks for git markdown 1211d69
@fabienric fabienric Date can be set at post creation
Added the parameter 'date' to the 'create_post' function.
The parameter is mapped to 'post_date' in Wordpress.
514e3ba
@fabienric fabienric Post metadata can be set at post creation
Added the parameter 'meta' which contains an array of 'key' => 'value'.
The Wordpress function 'update_post_meta' is called for each pair.
051fd84
@Achillefs Achillefs Merge pull request #1 from Caseproof/master
Added multisite and users controllers
6b6dbe1
@Achillefs Achillefs Merge pull request #2 from crgwbr/master
Expanded allowed parameters
0e922b4
@Achillefs Achillefs Merge pull request #5 from jbergen/master
better readme file
d1c8224
@Achillefs Achillefs Merge pull request #4 from edavis10/master
Support setting 'date' when saving a Post
8cea24d
@Achillefs Achillefs Merge pull request #3 from peterschilling/master
make JSON_API_CONTROLLERS really set default controllers
50742df
@Achillefs Achillefs Merge pull request #6 from fabienric/master
Post metadata can be set at post creation
96f7ab6
Achilles Charmpilas added slug update capability to the API 2343e03
Achilles Charmpilas implemented a post exists method. Currently only works for post meta …
…queries
3f17953
Achilles Charmpilas meta post_exists looks in future and trashed posts as well dce1500
@parse parse Fixed undefined index notice in API listing ffa7092
@Achillefs Achillefs Merge pull request #7 from parse/master
Fixed undefined index notice
5010bd5
Achilles Charmpilas whitespace a228bde
Achilles Charmpilas Merge branch 'master' of github.com:Achillefs/wp-json-api eeb4259
Achilles Charmpilas started with doc update 1035fb4
@aMoniker aMoniker add get_posts passthrough api method 06b9bc5
@aMoniker aMoniker add image alt_text to attachment if present 6bcecc0
@aMoniker aMoniker add support for get_posts category param 0d0c723
@Achillefs Achillefs Merge pull request #9 from aMoniker/add_image_alt_text
Add alt_text to image attachments
aded get_posts API method
99befc8
@Achillefs Achillefs Merge pull request #8 from aMoniker/get_posts
add get_posts passthrough api method
ecfb171
@Achillefs Achillefs Update readme.md
removed changelog as version do not apply an more
ca85a75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 25, 2011
  1. @crgwbr

    added support for post_status query param. Example: get_category_post…

    crgwbr authored
    …s/?slug=faq&post_status=future
  2. @crgwbr

    Added support for category_id, category_slug, tag_id, and tag_slug as…

    crgwbr authored
    … query params from any list method (get_tag_posts, get_category_posts, etc.). This allows more fine contorl over posts queries.
Commits on May 11, 2011
  1. @supercleanse
Commits on Dec 9, 2011
  1. posts controller now supports simple authentication via the 'author' …

    Achilles Charmpilas authored
    …and 'user_password' query values
Commits on Feb 9, 2012
  1. @schpet
Commits on Aug 27, 2012
  1. @edavis10
Commits on Dec 16, 2012
  1. @jbergen

    updated readme to markdown

    jbergen authored
  2. @jbergen
Commits on Dec 27, 2012
  1. @fabienric

    Date can be set at post creation

    fabienric authored
    Added the parameter 'date' to the 'create_post' function.
    The parameter is mapped to 'post_date' in Wordpress.
  2. @fabienric

    Post metadata can be set at post creation

    fabienric authored
    Added the parameter 'meta' which contains an array of 'key' => 'value'.
    The Wordpress function 'update_post_meta' is called for each pair.
Commits on Jan 5, 2013
  1. @Achillefs

    Merge pull request #1 from Caseproof/master

    Achillefs authored
    Added multisite and users controllers
  2. @Achillefs

    Merge pull request #2 from crgwbr/master

    Achillefs authored
    Expanded allowed parameters
  3. @Achillefs

    Merge pull request #5 from jbergen/master

    Achillefs authored
    better readme file
Commits on Jan 9, 2013
  1. @Achillefs

    Merge pull request #4 from edavis10/master

    Achillefs authored
    Support setting 'date' when saving a Post
  2. @Achillefs

    Merge pull request #3 from peterschilling/master

    Achillefs authored
    make JSON_API_CONTROLLERS really set default controllers
  3. @Achillefs

    Merge pull request #6 from fabienric/master

    Achillefs authored
    Post metadata can be set at post creation
Commits on Feb 13, 2013
  1. added slug update capability to the API

    Achilles Charmpilas authored
  2. implemented a post exists method. Currently only works for post meta …

    Achilles Charmpilas authored
    …queries
  3. meta post_exists looks in future and trashed posts as well

    Achilles Charmpilas authored
Commits on Apr 9, 2013
  1. @parse
Commits on Apr 13, 2013
  1. @Achillefs

    Merge pull request #7 from parse/master

    Achillefs authored
    Fixed undefined index notice
Commits on Apr 25, 2013
  1. whitespace

    Achilles Charmpilas authored
  2. Merge branch 'master' of github.com:Achillefs/wp-json-api

    Achilles Charmpilas authored
  3. started with doc update

    Achilles Charmpilas authored
Commits on May 2, 2013
  1. @aMoniker
Commits on May 3, 2013
  1. @aMoniker
Commits on May 6, 2013
  1. @aMoniker
  2. @Achillefs

    Merge pull request #9 from aMoniker/add_image_alt_text

    Achillefs authored
    Add alt_text to image attachments
    aded get_posts API method
  3. @Achillefs

    Merge pull request #8 from aMoniker/get_posts

    Achillefs authored
    add get_posts passthrough api method
  4. @Achillefs

    Update readme.md

    Achillefs authored
    removed changelog as version do not apply an more
Something went wrong with that request. Please try again.