Download the PHP package motion-php/client without Composer
On this page you can find all versions of the php package motion-php/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package client
Motion PHP is a community maintained PHP API Client for interacting with Motion API. Motion is an excellent calendar and project management application which uses AI to reschedule your time effectively. If you haven't heard of it yet, check it out at usemotion.com.
Table of Contents
- Getting Started
- Usage
- Tasks Resource
- Recurring Tasks Resource
- Workspaces Resource
- Users Resource
- Projects Resource
- Schedules Resource
- Testing
Getting Started
Requires PHP 8.1+
Requires PSR-18 HTTP Client
Install the Motion PHP client using the Composer package manager:
Make sure the php-http/discovery
composer plugin is allowed to run or install a PSR-18 HTTP Client implementation manually if your project does not already have one.
Then you are ready to interact with the Motion API. To get started quickly, you can use the Motion::client
factory method to create a client instance.
It is possible if you require to configure and provide a separate HTTP client using the Motion::factory
method.
Usage
Tasks resource
update
a task
Updates a task with the given id
and properties. Returns a Task
object.
PATCH /tasks/{id}
: :book: Documentation
create
a task
Creates a task with the given properties. Returns a Task
object.
POST /tasks
: :book: Documentation
delete
a task
Deletes a task with the given id
. Returns a Task
object.
DELETE /tasks/{id}
: :book: Documentation
retrieve
a task
Retrieves a task with the given id
. Returns a Task
object.
GET /tasks/{id}
: :book: Documentation
move
task between workspaces
Moves a task with the given id
to a new workspace with the given id
. Returns a Task
object.
POST /tasks/{id}/move
: :book: Documentation
Recurring Tasks
resource
create
a recurring task
Creates a recurring task with the given properties. Returns a RecurringTask
object.
POST /recurring-tasks
: :book: Documentation
list
recurring tasks
Lists recurring tasks in a workspace. Returns an array of RecurringTask
objects.
GET /recurring-tasks
: :book: Documentation
delete
a recurring task
Deletes a recurring task with the given id
. Returns an id
string.
DELETE /recurring-tasks/{id}
: :book: Documentation
Workspaces
resource
list
Lists workspaces for an organization.
GET /workspaces
: :book: Documentation
statuses
List statuses for a workspace
Users
Resource
list
Lists the currently available users. Can be limited by teamId
or workspaceId
.
Testing
Mock mode
The client can be configured to run in mock mode. This will return mock responses for all requests. This is useful for testing. This can help with implementation without hitting the API and hitting rate limits.
All versions of client with dependencies
php-http/discovery Version 1.x-dev
psr/http-client Version 1.0.x-dev
psr/http-client-implementation Version *
psr/http-factory-implementation Version *
psr/http-message Version 2.0.x-dev