Cake add-in that facilitates communication with Microsoft’s AppCenter API.
Although I had high hopes for this repo, it will be deprecated in favor of Cake.AppCenter plug-in written and maintained by Cake-Contrib organization.
- Clone repo
- Update
API_TOKEN
andOWNER_NAME
string constants within ApiTests.cs with actual values - Build solution
- Reference Cake.AppCenter.dll in your build.cake script
#reference "localtools/Cake.AppCenter.dll"
- Retrieving list of apps (
GET /v0.1/apps
) - Create new app (
POST /v0.1/apps
) - Deleting app (
DELETE /v0.1/apps/{owner_name}/{app_name}
)
- Cake.Core v0.26.1
- Humanizer v2.2.0
- NewtonSharp v10.0.3
- RestSharp v106.0.1
To return a list of apps, call GetApps
in your build.cake script:
Task("GetApps")
.Does(() =>
{
(bool success, List<Cake.AppCenter.Response.AppResponse> appResponse) result = GetApps("YOUR_API_TOKEN");
if (result.success)
{
foreach (var app in result.appResponse)
{
Information(app.Name);
}
}
else {
Warning("Unable to retrieve apps.");
}
});