I hereby claim:
- I am hanakslr on github.
- I am hanakessler (https://keybase.io/hanakessler) on keybase.
- I have a public key ASDXVTXoaHq57eKxFfS1rS9rDi63lEtjbIheRxOKqyuxAgo
To claim this, I am signing this object:
import { Configuration, FaradayClient } from "@faradayio/faraday-js"; | |
const configuration = new Configuration({ | |
basePath: window.location.origin, | |
accessToken: "Bearer abcd", | |
}); | |
const faraday = new FaradayClient(configuration); | |
const sample = async () => { |
I hereby claim:
To claim this, I am signing this object:
declare module "react-native-qonversion" { | |
export default class Qonversion { | |
static setProperty(property: Property, value: string): void; | |
static launchWithKey(key: string, observerMode?: Boolean): Promise<LaunchResult>; | |
static setUserProperty(property: string, value: string): void; | |
static setUserId(userId: string): void; | |
static addAttributionData(data: Object, provider: Provider): void; | |
static checkPermissions(): Promise<Map<string, Permission>>; | |
static purchase(productId: string): Promise<Map<string, Permission>>; | |
static updatePurchase( |
const typeDefs = gql` | |
type StripeCustomer { | |
stripe_cust_id: String! | |
} | |
type Mutation { | |
createStripeCustomer(name: String!, email: String!): StripeCustomer! | |
} | |
`; |
const Stripe = require("stripe"); |
const resolvers = { | |
Mutation: { | |
createStripeCustomer: async (_parent, args, context) => { | |
const stripe = Stripe(context.headers.stripe_api_key); | |
const customer = await stripe.customers.create({ | |
name: args.name, | |
email: args.email, | |
}); | |
return { stripe_cust_id: customer.id }; |
const { ApolloServer, gql } = require("apollo-server-lambda"); | |
const Stripe = require("stripe"); | |
const typeDefs = gql` | |
type StripeCustomer { | |
stripe_cust_id: String! | |
} | |
type Mutation { | |
createStripeCustomer(name: String!, email: String!): StripeCustomer! |