0

Is there a way to get an entry using only PHP? I've looked at the developer API, http://ellislab.com/expressionengine/user-guide/development/api/api_channel_entries.html, but there doesn't seem to be a way to fetch an entry.

I'd like to do this:

$entry = ee()->api_channel_entries->get_entry($entry_id);

2 Answers 2

1

I was able to use the Bones plugin and get data over the ACT (Action) APIs, such as:

?ACT=40&url_title=$sSlug

Or:

?ACT=40&entry_id=$nEntryID

0

Short answer: there is no API for this.

Longer answer: there is no API, but... You could either check out ObjectiveHTML's Channel Data library. You could also try and utilize the Channel module. However, that path is completely undocumented, so if you decide to go that route, tread lightly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.