File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/main/java/org/kohsuke/github Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 11package org .kohsuke .github ;
22
3+ import java .io .IOException ;
34import java .net .URL ;
45
56// TODO: Auto-generated Javadoc
@@ -78,21 +79,18 @@ public GHMarketplaceAccountType getType() {
7879 * also see the upcoming pending change.
7980 *
8081 * <p>
81- * You use the returned builder to set various properties, then call
82- * {@link GHMarketplacePlanForAccountBuilder#createRequest()} to finally fetch the plan related this this account.
83- *
84- * <p>
8582 * GitHub Apps must use a JWT to access this endpoint.
8683 * <p>
8784 * OAuth Apps must use basic authentication with their client ID and client secret to access this endpoint.
8885 *
8986 * @return a GHMarketplaceListAccountBuilder instance
87+ * @throws IOException
9088 * @see <a href=
91- * "https://developer .github.com/v3/ apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan">List
92- * all GitHub accounts (user or organization) on a specific plan </a>
89+ * "https://docs .github.com/en/rest/ apps/marketplace?apiVersion=2022-11-28#get-a-subscription-plan-for-an-account">Get
90+ * a subscription plan for an account </a>
9391 */
94- public GHMarketplacePlanForAccountBuilder getPlan () {
95- return new GHMarketplacePlanForAccountBuilder (root (), this .id );
92+ public GHMarketplaceAccountPlan getPlan () throws IOException {
93+ return new GHMarketplacePlanForAccountBuilder (root (), this .id ). createRequest () ;
9694 }
9795
9896}
You can’t perform that action at this time.
0 commit comments