dfe-analytical-services / dfe-analytical-services/eesyapi.R

Add function for get publication details

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
new feature
Dominant language
R
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

We have an endpoint that gets a publications details in EES, so we should add a wrapper function for it.

Expect main argument to be publication_id, with api version / environment etc also in there but with defaults set.

Example JSON ouput
```
{
"id": "d851c09e-7f5a-4750-9191-ed67ba5e8f8b",
"title": "Pupil absence in schools in England",
"slug": "pupil-absence-in-schools-in-england",
"summary": "Summary of the publication.",
"lastPublished": "2024-06-01T09:30:00+00:00"
}
```

Assume we could give a simple data frame of this that is transposed for readability (e.g. where id / title etc should be cols, we use them as rows so it prints neatly into the console)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.