Created
July 6, 2017 22:03
-
-
Save shopifypartners/3d30948dd35b3d24bc206c1eccfbc421 to your computer and use it in GitHub Desktop.
Shopify Android Buy SDK: Integrating customer sign-up 1 – https://www.shopify.com/partners/blog/shopify-android-buy-sdk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Storefront.CustomerCreateInput customer = new Storefront.CustomerCreateInput(“test”,”test”) | |
.setEmail(“josh.brown@shopify.com”) | |
.setFirstName(“Josh”) | |
.setLastName(“Brown”) | |
.setPassword(“verysecret”) | |
.setAcceptsMarketing(true); | |
Storefront.MutationQuery query = Storefront.mutation(rootQuery -> rootQuery | |
.customerCreate(customer, createCustomer ->createCustomer | |
.customer(customerQuery -> customerQuery | |
.firstName() | |
.id() | |
) | |
.userErrors(userErrorQuery -> userErrorQuery | |
.field() | |
.message() | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment