Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Cake add-in that facilitates communication with Microsoft’s AppCenter API.

License

Notifications You must be signed in to change notification settings

AnthonyArzola/Cake.AppCenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cake.AppCenter

Cake add-in that facilitates communication with Microsoft’s AppCenter API.

Repo will be deprecated

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.

Getting Started

  1. Clone repo
  2. Update API_TOKEN and OWNER_NAME string constants within ApiTests.cs with actual values
  3. Build solution
  4. Reference Cake.AppCenter.dll in your build.cake script
#reference "localtools/Cake.AppCenter.dll"

Supports

  1. Retrieving list of apps (GET /v0.1/apps)
  2. Create new app (POST /v0.1/apps)
  3. Deleting app (DELETE /v0.1/apps/{owner_name}/{app_name})

References

  • Cake.Core v0.26.1
  • Humanizer v2.2.0
  • NewtonSharp v10.0.3
  • RestSharp v106.0.1

Sample

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.");
  }
});

About

Cake add-in that facilitates communication with Microsoft’s AppCenter API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages