Does kony offer any rest api to export or import an app in MobileFabric

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

I'd like to export an app using an external program and do some modifications and then import the app into MobileFabric. Does kony expose any rest api to perform these opertaions

Hi,

Yes. We support this through certain steps. Kindly refer the below link for details .

http://docs.kony.com/konylibrary/mobilefabric/kony_mobilefabric_user_guide/Content/CI_with_MobileFabric_APIs.htm

Thanks

Many Thanks !!!

I was looking for this. But our mobile fabric services are authenticated using siteminder. When i tried modifying the values to make a call to fetch the token, I receive the below error.

But however I'm able to login to mobile fabric instance using browser .

curl -H "Accept: application/json" --data "userid=[XXXXXX]&password=[XXXXXXX]" -X POST "https://qamobile.aetna.com/authServices/sma/login.fcc" <html>

<head>
<title>ECHS - Call Help Desk</title>
</head>

<body>
<center>

<blockquote>
<center>

<!-- Table for the logos… –>
<table align=“center” width=“80%”>
<tr>
<td align=“left”><img src=“images/echslogo.jpg” alt=“ECHS logo”></td>
<td align=“right”><a href=“http://aetnet.aetna.com”>
<img src=“images/aetnetlogo.gif” alt=“Return to AetNet” border=“no”></a>
</td>
</tr>
</table>

<br>

<b><font face=“Arial”>ECHS - Electronic Correspondence Handling System</font></b>

<p><font face=“Arial, Helvetica”>Your credentials are not valid for ECHS.</p>

<p><font face=“Arial, Helvetica”>Please contact your Security Administrator or Help Desk.</p>

<p><font face=“Arial, Helvetica”>If you believe you should not have received this error, close your browser and try again.</font></p>

</center>
</blockquote>

</body>

Sample cURL script for Export app is not helpfull and is similar to fetchClaimsToken example . Could you please provide an example on how to invoke GET to export the app with details of Workspace ID and AppName .

Can you download the attached jar and try below command.

java -jar mfcli.jar Export

-u XXXX -p XXXX -au https://qamobile.aetna.com/<authServices Context> -cu https://qamobileintranet.aetna.com/<mfconsole context> -f "<path to export>\ARFLMobile.zip"

This should export the application to specified location.

Hi,

Where do we need mention the app name that we want to export ?

Kind Regards

Hi,

When I tried executing from command line with below details:

java -jar mfcli.jar export -u ***** -p ***** -au https://qamobile.aetna.com/authServices/sma/login.fcc -cu https://qamobileintranet.aetna.com/mfconsole -f "D:\\Mobile.zip" -a AetnaMobilePath2

it gave me an error with "ERROR: Failed to parse Identity Services response"

However I'm able to login from browser . For logging from command line does the user need an admin access ?

Hi,

Do you have any info on this.

Kind Regards

How can we import the application in MFConsole (The doc link provided explains how to import it in Viz workspace. But my requirement is importing the app in the running mf console.

And do we need the auth token to be generated every time?

Hi @Andwev Lvmxewt​ ,

to import an app into mfconsole, you can use import command of mfcli or using curl script if u have claims token fetched.

i.e.

curl -F "appZip=@C:/Users/KH1895/Desktop/file.zip" -H "X-Kony-Authorization:[auth token]" -X POST " https:// [workspaceid].workspace.konycloud.com/api/v1/ws/[workspaceid]/apps/import"

curl -F "appZip=@C:/Users/KH1895/Desktop/file.zip" -H "X-Kony-Authorization:[auth token]" -X POST " https:// [workspaceid].workspace.konycloud.com/api/v1/ws/[workspaceid]/apps/import?appName=[app name]&suppressWarnings=true"

To import using mfcli,

java -jar mfcli.jar import -u ***** -p ***** -au https://qamobile.aetna.com/authServices/sma/login.fcc -cu https://qamobileintranet.aetna.com/mfconsole -f "D:\\Mobile.zip" -a AetnaMobilePath2