Liking cljdoc? Tell your friends :D

fourteatoo.clj-blink.api

The main API interface. Call register-client or authenticate-client and, with the returned client map, you can use the other primitives.

The main API interface.  Call `register-client` or
`authenticate-client` and, with the returned client map, you can use
the other primitives.
raw docstring

*client-name*clj

source

*device-id*clj

source

authenticate-clientclj

(authenticate-client email password unique-id)

Authenticate client. Call this function to authenticate your client. The unique-id comes from a previous register-client. It is an error to call this function with an unique-id that is invalid or unknown to the server. Return a map that identifies the client and can be passed to all the other API functions.

Authenticate client.  Call this function to authenticate your client.
The `unique-id` comes from a previous `register-client`. It is an
error to call this function with an `unique-id` that is invalid or
unknown to the server.  Return a map that identifies the client and
can be passed to all the other API functions.
sourceraw docstring

fetch-mediaclj

(fetch-media client path & [as])

Fetch the media from the Blink server. The path is found in the :thumbnail and :media entries in the video maps. See get-videos.

Fetch the media from the Blink server.  The `path` is found in the
`:thumbnail` and `:media` entries in the video maps.  See
`get-videos`.
sourceraw docstring

get-camera-infoclj

(get-camera-info client network camera)

Get configuration and status of a specific camera. Return a map of all the data about the camera.

Get configuration and status of a specific camera.  Return a map of
all the data about the camera.
sourceraw docstring

get-camera-live-viewclj

(get-camera-live-view client network camera)

Return a link to the camera live feed.

Return a link to the camera live feed.
sourceraw docstring

get-camera-sensorsclj

(get-camera-sensors client network camera)

Return the status of a camera's sensors.

Return the status of a camera's sensors.
sourceraw docstring

get-camera-usageclj

(get-camera-usage client)

Get the usage info of all cameras. Return a map.

Get the usage info of all cameras.  Return a map.
sourceraw docstring

get-command-statusclj

(get-command-status client network command-id)

Return the status of command.

Return the status of command.
sourceraw docstring

get-home-screenclj

(get-home-screen client)

Return the home screen. The home screen being a summary of info regarding a system and its devices.

Return the home screen.  The home screen being a summary of info
regarding a system and its devices.
sourceraw docstring

get-network-statusclj

(get-network-status client network)

Get the network status. Return a map with the current configuration of network.

Get the network status.  Return a map with the current configuration
of `network`.
sourceraw docstring

get-networksclj

(get-networks client)

Get all the configured networks. Network being a collection of cameras hooked to the same Blink hub (aka sync module). Pass a client map as returned by authenticate-client or register-client.

Get all the configured networks.  Network being a collection of
cameras hooked to the same Blink hub (aka sync module).  Pass a
`client` map as returned by `authenticate-client` or
`register-client`.
sourceraw docstring

get-sync-moduleclj

(get-sync-module client network)

Get the sync module of network. Return a map with the sync module's configuration.

Get the sync module of `network`. Return a map with the sync module's
configuration.
sourceraw docstring

get-userclj

(get-user client)

Get the user configuration. Return a map with the user data.

Get the user configuration.  Return a map with the user data.
sourceraw docstring

get-videosclj

(get-videos client & {:keys [since page]})

Get a list of videos currently saved in the cloud. The result is paginated and the :page number can be passed to specify subsequent pages. A starting epoch can be specified with the :since keyword argument.

Get a list of videos currently saved in the cloud. The result is
paginated and the `:page` number can be passed to specify subsequent
pages. A starting epoch can be specified with the `:since` keyword
argument.
sourceraw docstring

motion-detection-disableclj

(motion-detection-disable client network camera)

Short for (set-motion-detection client network camera :disable)

Short for `(set-motion-detection client network camera :disable)`
sourceraw docstring

motion-detection-enableclj

(motion-detection-enable client network camera)

Short for (set-motion-detection client network camera :enable)

Short for `(set-motion-detection client network camera :enable)`
sourceraw docstring

new-thumbnailclj

(new-thumbnail client network camera)

Take a new still photograph with the sepcific camera on the specific network. The new thumbnail will replace the current one on the mobile app.

Take a new still photograph with the sepcific camera on the specific
network. The new thumbnail will replace the current one on the
mobile app.
sourceraw docstring

new-video-clipclj

(new-video-clip client network camera)

Take a new video with the sepcific camera on the specific network.

Take a new video with the sepcific camera on the specific network.
sourceraw docstring

register-clientclj

(register-client email password & {:keys [unique-id]})

Register a new client with the server. You need to call this function only once and save its output. This function will trigger the 2FA from Blink. You will be asked to enter a PIN that is delivered to you via email or SMS. Return a map that identifies the client in the successive API calls. An unique id is generated for you, but it can also be passed as keyword argument, if necessary. See authenticate-client.

Register a new client with the server.  You need to call this
function only once and save its output.  This function will trigger
the 2FA from Blink.  You will be asked to enter a PIN that is
delivered to you via email or SMS. Return a map that identifies the
client in the successive API calls. An unique id is generated for
you, but it can also be passed as keyword argument, if
necessary. See `authenticate-client`.
sourceraw docstring

set-motion-detectionclj

(set-motion-detection client network camera action)

Enable or disable the motion detection of a specific camera. The parameter action should be either :eable or :disable

Enable or disable the motion detection of a specific camera. The
parameter `action` should be either `:eable` or `:disable`
sourceraw docstring

set-system-stateclj

(set-system-state client network action)

Change the state of the system. action being either :arm or :disarm. Return a map with the actions performed on the network.

Change the state of the system.  `action` being either `:arm` or
`:disarm`.  Return a map with the actions performed on the network.
sourceraw docstring

system-armclj

(system-arm client network)

Shortcut for (set-system-state client network :arm).

Shortcut for `(set-system-state client network :arm)`.
sourceraw docstring

system-disarmclj

(system-disarm client network)

Shortcut for (set-system-state client network :disarm).

Shortcut for `(set-system-state client network :disarm)`.
sourceraw docstring

update-networkclj

(update-network client network)

Update a specific network. Network being a collection of cameras hooked to the same Blink hub (aka sync module). Pass a client and a network id. Return a map with the network current configuration.

Update a specific network.  Network being a collection of cameras
hooked to the same Blink hub (aka sync module).  Pass a `client` and
a `network` id. Return a map with the network current
configuration.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close