Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register package #18

Merged
merged 4 commits into from
Dec 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CI
on:
schedule:
- cron: 0 0 * * 0
push:
branches:
- main
Expand Down Expand Up @@ -28,7 +30,7 @@ jobs:
- 'latest'
steps:
- uses: actions/checkout@v2
- run: docker compose -f test/docker-compose.yml -f test/docker-compose.${{ matrix.lsversion }}.yml up -d --build
- run: docker compose -f test/limesurvey/docker-compose.yml -f test/limesurvey/docker-compose.${{ matrix.lsversion }}.yml up -d --build
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
Expand Down
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
[![Build Status](https://github.com/p-gw/CitrusAPI.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/p-gw/CitrusAPI.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Coverage](https://codecov.io/gh/p-gw/CitrusAPI.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/p-gw/CitrusAPI.jl)

This Julia package provides a thin wrapper for the [LimeSurvey API](https://manual.limesurvey.org/RemoteControl_2_API). For a list of methods see https://api.limesurvey.org/classes/remotecontrol_handle.html.
This Julia package provides a wrapper for the [LimeSurvey Remote Control 2 API](https://manual.limesurvey.org/RemoteControl_2_API).

Note that this package uses a more "julian" syntax for API methods. Methods that mutate data by either adding, deleting or modifying data are implemented as [bang functions](https://docs.julialang.org/en/v1/manual/style-guide/#bang-convention). For example the API method `add_survey` is implemented as the `add_survey!` function in `CitrusAPI.jl`.
## Installation
CitrusAPI is registered in the Julia General package registry.
Simply install it by calling

```julia
pkg> add CitrusAPI
```

## Getting started
If your LimeSurvey server is set up correctly you can start by setting up a `CitrusClient` and connecting to the server.
Expand All @@ -28,6 +34,8 @@ disconnect!(client)
```

## Available methods
Note that CitrusAPI uses a more "julian" syntax for API methods. Methods that mutate data by either adding, deleting or modifying data are implemented as [bang functions](https://docs.julialang.org/en/v1/manual/style-guide/#bang-convention). For example the API method `add_survey` is implemented as the `add_survey!`.

- `activate_survey!`
- `activate_tokens!`
- `add_group!`
Expand Down Expand Up @@ -82,4 +90,4 @@ disconnect!(client)
- `connect!`
- `disconnect!`
- `expire_survey!`
- `is_active`
- `is_active`
3 changes: 0 additions & 3 deletions test/Dockerfile

This file was deleted.

3 changes: 3 additions & 0 deletions test/limesurvey/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ARG LS_VERSION
FROM acspri/limesurvey:${LS_VERSION}
COPY ./config.php /var/www/html/application/config/config.php
File renamed without changes.
File renamed without changes.