Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Logon is for generating an accesskey for a user. It takes as argument the username and password and it returns a json object which includes an accesskey. Most of the times, this endpoint is sufficient for generating access keys as it defaults to the Digizuite product.

...

NameExampleDescription
methodLogOn

//Fixed parameter that identifies the endpoint method.

Specifies the ConnectService method, specifically LogOn in this case.

usernamedonaldYour username The username to log in with. This field is case insensitive..
password36846677e3a8f4c0b16d8bdf8ef18608

An MD5 representation of your hash of the user's password.
Password Passwords are not stored in MD5 but needs this representation , but MD5 is used in the LogOn method for backwards compatibility.

languageId

(optional)

3

...

A language ID identifying language to the DAM. Languages available for use are set up in the DAMs System Tools → Language area. The ID can also be grabbed from here. When no languageId is specified the users language will be used or the system default if this is not set.


cUrl example

Info
iconfalse

curl --data "username=donald^&password=36846677e3a8f4c0b16d8bdf8ef18608^&method=LogOn"X POST \
https://some.dam.com/dmm3bwsv3/ConnectService.js \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F method=LogOn \
-F username=Guest \
-F password=0ea2f02d5f73c86c220ff08b23d1c3f1 \
-F languageId=3

Success Response

Code : 200 OK

Content example

info
Code Block
language
js
{
	{
		"success": "true",
		"items": [{
			"accessKey": "2d8319f4-7a57-4ca0-a027-c44c2f259aac",
			"memberId": "23",
			"itemid": "3154",
			"languageId": "3"
		}]
	}
}

Error Response

Code : 200 OK

Content  example

Infocode
iconlanguagefalsejs
{

 
    "success": "false",


    "error": "Access denied."


}