Anyone Successfully Access ECM API From Another Application?

Boom!!

That did it. Thanks @jstephens !!

2 Likes

Let’s go. That’s sick. Thank you @jstephens .

This is GOLD Jason - thanks for posting! :1st_place_medal:

2 Likes

I’m very curious…
Could you share with the class what you are working on?

2 Likes

@jkane I think is making an outside of ECM rest workflow to attach documents.

This is the other thread.

Does anyone have the ECM format for the call definitions to create datalinks to the cloud API? Been working through things and not exactly sure what is missing.

[
    {
        "Name": "ECMLogin",
        "Url": "https://cloud##.docstar.com/EclipseServer/HostingV2/User.svc/restssl/LogIn/",
        "Method": "Post",
        "AuthScheme": "Basic",
        "AuthParameter": "*****************",
        "AllowInvalidSSL": false,
        "LogPath": "C:\\temp\\ECMLogin.log",
        "WSHeaders": [
            {
                "Key": "a",
                "Value": "b"
            }
        ],
        "Columns": [
            {
                "Name": "AccessToken",
                "Path": "AccessToken",
                "ChainOutput": "@AccessToken"
            },
            {
                "Name": "TokenType",
                "Path": "TokenType",
                "ChainOutput": "@TokenType"
            },
            {
                "Name": "ExpiresIn",
                "Path": "ExpiresIn"
            },
            {
                "Name": "RefreshToken",
                "Path": "RefreshToken"
            }
        ]
    }
]
[
    {
        "URL": "https://cloud##.docstar.com/EclipseServer/AstriaV2/Folder.svc/restssl/Get",
        "Method": "Post",
        "AuthScheme": "@TokenType",
        "AuthParameter": "@AccessToken",
        "Body": "{\"FolderIds\": \"@FolderIds\", \"IncludePaths\": true, \"SuppressSecurityExceptions\": true}",
        "CollectionPath": null,
        "WSHeaders": [
            {
                "Key": "Content-Type",
                "Value": "application/json"
            }
        ],
        "Columns": [
            {
                "Name": "AccessedOn",
                "Path": "Result.AccessedOn",
                "ChainOutput": null
            },
            {
                "Name": "CreatedBy",
                "Path": "Result.CreatedBy",
                "ChainOutput": null
            },
            {
                "Name": "CreatedOn",
                "Path": "Result.CreatedOn",
                "ChainOutput": null
            },
            {
                "Name": "EffectivePermissions",
                "Path": "Result.EffectivePermissions",
                "ChainOutput": null
            },
            {
                "Name": "Id",
                "Path": "Result.Id",
                "ChainOutput": null
            },
            {
                "Name": "ModifiedBy",
                "Path": "Result.ModifiedBy",
                "ChainOutput": null
            },
            {
                "Name": "ModifiedOn",
                "Path": "Result.ModifiedOn",
                "ChainOutput": null
            },
            {
                "Name": "Parent",
                "Path": "Result.Parent",
                "ChainOutput": null
            },
            {
                "Name": "Path",
                "Path": "Result.Path",
                "ChainOutput": null
            },
            {
                "Name": "SecurityClassId",
                "Path": "Result.SecurityClassId",
                "ChainOutput": null
            },
            {
                "Name": "Title",
                "Path": "Result.Title",
                "ChainOutput": null
            }
        ],
        "ContentType": "application/json",
        "Parser": 0,
        "EscapeParameters": true,
        "EscapeForUrl": true,
        "XMLNameSpaces": null
    }
]

@FolderIds = The parameter for the folder ID(s)