Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to make API requests, you must use a token, as described in detail in Making an API request.

  1. Go to API under your logged in username, shown in the upper right corner of the application window.
  2. Click Add to create a new API token.
  3. From the dialog that opens, choose API as the scope type for the token.

    Image Modified

  4. Optionally, add a description to identify the token.
  5. Click Save to create the token.

After you save your new API token, you'll see it in the API Tokens grid.

Image RemovedImage Added

Add a Web Data Source to Power BI

...

  1. Create a new report.
  2. From the "Get data" menu, select Web as the data source.




  3. Complete the form that displays.
    Image RemovedImage Added

    1. Use Toggle the form to Advanced option to add the API endpoints. For our example, we'll use the (URL parts). The example above uses the endpoint "/api/v2/feature/{id}ID/usage-history/json" endpoint. The Feature ID ," where the ID variable(set to 60 in our example) can be retrieved by using the "/api/v2/feature/list" endpoint or by looking at from the Feature ID column on in any grid in the License Statistics UIgrid, as shown in the illustration below. (The Feature ID column is hidden by default, so you may need to toggle its visibility on.)



    2. Set the query parameters; for example, you might set a start date of December 6, 2022, and an end date of December 11, 2022 (see API endpoints for a complete list of API endpoint parameters):
      1. sd=2022-12-06
      2. ed=2022-12-11
      3. granularity=DAY

        Image AddedImage Removed
        For a complete list of optional API endpoint parameters see API endpoints.

    3. Add the appropriate HTTP request headers:

      1. Accept: */*
      2. X-Auth-token: {API token value}


    4. Click OK to accept the completed form. 
  4. When prompted, use the Anonymous access option. Authorization has been handled by the token we added to the header in the previous step.



  5. Click Connect to access the defined Web source and get the requested data.


...