Forum Discussion

kc's avatar
kc
Ace
12 years ago

Scripted asset upload

1) We put items (js, html) in Studio > Community Style > Asset Library > Other Assets. I want to know if there is any shell script floating around that we can use to post assets there from command line.

 

(2) Also, is there any API to post assets?

 

(3) If we use sessions/login to get a session key, can we use that as a header cookie value for site access other than through the API?

 

2 Replies

  • DougS's avatar
    DougS
    Khoros Oracle
    12 years ago

    #1: I'm not aware of any scripts, but maybe someone else has one -- it would have to make direct HTTP POSTs to authenticate and then to upload the asset(s) via Studio and would probably be difficult to get to work because of all the hidden form parameters that need to be passed along.

     

    #2: There is currently no API to post Studio assets.  Other developers have been asking for an API as well and we are working on adding support for this.

     

    #3: The session keys returned by the API sessions/login call can only be used to make other API calls (and cannot be used to log access web pages in the web UI).

  • luk's avatar
    luk
    Boss
    11 years ago
    This should get a lot of attention as it is really cumbersome to have to upload each and every little asset change (imagine JS/CSS) separately and trigger a stage -> prod workflow to publish it. It would be nice if we could just (S)FTP assets up into a lithium instance!