<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Testing License API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2818739#M39071</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try to send API by third party tool Postman.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learning.postman.com/docs/getting-started/sending-the-first-request/" target="_blank" rel="noopener"&gt;https://learning.postman.com/docs/getting-started/sending-the-first-request/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hevodata.com/learn/postman-rest-client/" target="_blank"&gt;https://hevodata.com/learn/postman-rest-client/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2022 05:21:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-05T05:21:21Z</dc:date>
    <item>
      <title>Testing License API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2814376#M39043</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;How can I test license API before publishing the bundle to AppSource?&lt;BR /&gt;&lt;BR /&gt;I have React to build my own visul and use license API for payments.&lt;BR /&gt;I found examples here:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/visuals/licensing-api" target="_blank"&gt;https://learn.microsoft.com/en-gb/power-bi/developer/visuals/licensing-api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;How I can test it?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 15:13:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2814376#M39043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Testing License API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2818739#M39071</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can try to send API by third party tool Postman.&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learning.postman.com/docs/getting-started/sending-the-first-request/" target="_blank" rel="noopener"&gt;https://learning.postman.com/docs/getting-started/sending-the-first-request/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://hevodata.com/learn/postman-rest-client/" target="_blank"&gt;https://hevodata.com/learn/postman-rest-client/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 05:21:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2818739#M39071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-05T05:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Testing License API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2821875#M39097</link>
      <description>&lt;P&gt;Thanks. I know how to work with Postman, but I want to know another thing.&lt;BR /&gt;I use &lt;U&gt;licenseManager&lt;/U&gt; to get license data (&lt;U&gt;plans, isLicenseUnsupportedEnv, isLicenseInfoAvailable&lt;/U&gt;) from powerBI to know if I have to show a watermark (watermark to buy a license).&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;&lt;U&gt;options.host.licenseManager.getAvailableServicePlans().then((result: LicenseInfoResult) =&amp;gt; { ... }&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, the question is “How I can test the license plans before publishing the app?”&lt;BR /&gt;How can I test instructions from this page? (&lt;U&gt;&lt;A href="https://learn.microsoft.com/en-gb/power-bi/developer/visuals/licensing-api" target="_blank"&gt;https://learn.microsoft.com/en-gb/power-bi/developer/visuals/licensing-api&lt;/A&gt;&lt;/U&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I want to test cases if I have a plan with a license key or if I have a trial period or if I don’t have a license. How can I test these cases?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 07:45:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2821875#M39097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Testing License API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2821905#M39098</link>
      <description>&lt;P&gt;My code:&lt;/P&gt;&lt;PRE&gt;constructor(options: VisualConstructorOptions) {&lt;BR /&gt;  &lt;SPAN&gt;this&lt;/SPAN&gt;.host = options.host&lt;BR /&gt;  &lt;SPAN&gt;this&lt;/SPAN&gt;.licenseManager = options.host.licenseManager&lt;BR /&gt;&lt;BR /&gt;  &lt;SPAN&gt;this&lt;/SPAN&gt;.licenseManager.getAvailableServicePlans().then((result) =&amp;gt; {&lt;BR /&gt;    &lt;SPAN&gt;this&lt;/SPAN&gt;.isPowerBILicense = !!(&lt;BR /&gt;      result.plans &amp;amp;&amp;amp;&lt;BR /&gt;      result.plans.length &amp;amp;&amp;amp;&lt;BR /&gt;      result.plans.some(&lt;BR /&gt;        (plan) =&amp;gt;&lt;BR /&gt;          PAID_PLANS.includes(plan.spIdentifier) &amp;amp;&amp;amp;&lt;BR /&gt;          (plan.state === powerbi.ServicePlanState.Active ||&lt;BR /&gt;            plan.state === powerbi.ServicePlanState.Warning)&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;      )&lt;BR /&gt;    )&lt;BR /&gt;  })&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Now, I am in developer mode and I can't get real data, because the visual is not published.&lt;BR /&gt;How can I test the license?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 07:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Testing-License-API/m-p/2821905#M39098</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T07:51:51Z</dc:date>
    </item>
  </channel>
</rss>

