Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Checks whether a user's subscription purchase is valid and returns its expiry time.
See: Google Play Developer API Reference for androidpublisher.purchases.subscriptions.get
.
Synopsis
- type PurchasesSubscriptionsGetResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (Capture "token" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SubscriptionPurchase)))))))))
- purchasesSubscriptionsGet :: Text -> Text -> Text -> PurchasesSubscriptionsGet
- data PurchasesSubscriptionsGet
- psgPackageName :: Lens' PurchasesSubscriptionsGet Text
- psgToken :: Lens' PurchasesSubscriptionsGet Text
- psgSubscriptionId :: Lens' PurchasesSubscriptionsGet Text
REST Resource
type PurchasesSubscriptionsGetResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("purchases" :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("tokens" :> (Capture "token" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SubscriptionPurchase))))))))) Source #
A resource alias for androidpublisher.purchases.subscriptions.get
method which the
PurchasesSubscriptionsGet
request conforms to.
Creating a Request
purchasesSubscriptionsGet Source #
Creates a value of PurchasesSubscriptionsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PurchasesSubscriptionsGet Source #
Checks whether a user's subscription purchase is valid and returns its expiry time.
See: purchasesSubscriptionsGet
smart constructor.
Instances
Request Lenses
psgPackageName :: Lens' PurchasesSubscriptionsGet Text Source #
The package name of the application for which this subscription was purchased (for example, 'com.some.thing').
psgToken :: Lens' PurchasesSubscriptionsGet Text Source #
The token provided to the user's device when the subscription was purchased.
psgSubscriptionId :: Lens' PurchasesSubscriptionsGet Text Source #
The purchased subscription ID (for example, 'monthly001').