This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<managedAppConfiguration> | |
<version>1</version> | |
<bundleId>com.mobileiron.demo.SAP-Demo-App-ManagedConfig</bundleId> | |
<dict> | |
<string keyName="UserEmailAddress"> | |
<defaultValue> | |
<value>${userEmailAddress}</value> | |
</defaultValue> | |
</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"services": [ | |
{ | |
"login_method": "facebook", | |
"type": "facebook", | |
"icon": { | |
"android_mdpi":"http://someimageurl.com/123", | |
"android_hdpi":"http://someimageurl.com/123", | |
"android_xhdpi":"http://someimageurl.com/123", | |
"ios":"http://someimageurl.com/123", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create the request with account, an upload progress listener and the asset id that was previously | |
verified and marked as new or verified ( not complete). Can accept one or multiple asset Ids. | |
returns an JSONArray of the status of each upload with asset id and status code and a response | |
GCAssetCollection with the parsed response. | |
GCBaseRequest request = GCAssets.upload(GCAccount.getInstance(getApplicationContext()), | |
new GCUploadProgressListener() { | |
@Override | |
public void onUploadStarted(String assetId, String filepath) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// asset instanec | |
GCAssetModel asset = new GCAssetModel(); | |
asset.setId("414"); | |
sync: | |
asset.delete(GCAccount.getInstance(getApplicationContext()).execute(); | |
async: | |
new GCAsyncRunner(asset.delete(GCAccount.getInstance(getApplicationContext())),this).execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generate the request | |
GCBaseRequest request = GCAssets.delete(GCAccount.getInstance(getApplicationContext()), "414"); | |
sync: | |
request.execute(); | |
async: | |
new GCAsyncRunner(request,callback).execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get the file you want to verify: | |
File file = new File(Environment.getExternalStorageDirectory() + "/ac3_nogradient.jpg"); | |
Log.e("SDKTest", file.getPath()); | |
// Set it to the model | |
GCLocalAssetModel model = new GCLocalAssetModel(); | |
model.setLocalImageFile(file); | |
// Generate the request: | |
GCBaseRequest request = model.verify(GCAccount.getInstance(Context), true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sync | |
GCBaseRequest request = GCChutes.Resources.contributors( | |
GCAccount.getInstance(getApplicationContext()), "6"); | |
try { | |
GCResponse response = request.execute(); | |
GCMemberCollection collection = (GCMemberCollection) response.getResponseObject(); | |
Log.e(TAG, collection.toString()); | |
} catch (GCApiException e) { | |
Log.w(TAG, "", e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sync | |
GCBaseRequest request = GCChutes.Resources.members( | |
GCAccount.getInstance(getApplicationContext()), "6"); | |
try { | |
GCResponse response = request.execute(); | |
GCMemberCollection collection = (GCMemberCollection) response.getResponseObject(); | |
Log.e(TAG, collection.toString()); | |
} catch (GCApiException e) { | |
Log.w(TAG, "", e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GCRest client = new GCRest("SOME ENDPOINT FORMED URL"); | |
// url example http://api.edge.getchute.com/v1/chutes/6/contributors | |
// instance example with url GCRest client = new | |
// GCRest("http://api.edge.getchute.com/v1/chutes/6/contributors"); | |
try { | |
// Add optional params | |
client.addParam("name", "value"); | |
// Add optional headers | |
client.addHeader("name", "value"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sync | |
GCBaseRequest request = GCChutes.Resources.assets( | |
GCAccount.getInstance(getApplicationContext()), "6"); | |
try { | |
GCResponse response = request.execute(); | |
GCAssetCollection collection = (GCAssetCollection) response.getResponseObject(); | |
Log.e(TAG, collection.toString()); | |
} catch (GCApiException e) { | |
Log.w(TAG, "", e); |
NewerOlder