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
| <md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="_c0d15019-1a51-4006-aef7-7d906973799a" entityID="brand-portal"> | |
| <md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> | |
| <md:NameIDFormat> | |
| urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress | |
| </md:NameIDFormat> | |
| <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://brand.kaspersky.com/users/auth/saml/callback" index="0" isDefault="true"/> | |
| <md:AttributeConsumingService index="1" isDefault="true"> | |
| <md:ServiceName xml:lang="en">Required attributes</md:ServiceName> | |
| <md:RequestedAttribute FriendlyName="Email address" Name="email" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> | |
| <md:RequestedAttribute FriendlyName="Full name" Name="name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> |
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
| defmodule MyAppWeb.SubscriptionTest do | |
| use MyAppWeb.SubscriptionCase | |
| @mutation """ | |
| mutation createUser($email: String, $name: String){ | |
| createUser(email: $email, name: $name){ | |
| } | |
| } | |
| """ |
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
| defmodule MyAppWeb.SubscriptionCase do | |
| use ExUnit.CaseTemplate | |
| using do | |
| quote do | |
| @endpoint MyAppWeb.Endpoint | |
| use Anise | |
| use Anise.SubscriptionCase, | |
| schema: MyAppWeb.Schema, | |
| socket: MyAppWeb.UserSocket | |
| end |
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
| module Exports | |
| class UserExcelExport < ApplicationExcelExport | |
| BATCH_SIZE = 500 | |
| private | |
| def default_headers | |
| { | |
| name: "Имя", | |
| email: 'email', |
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
| resp = AmzLookUp.item_lookup( | |
| [1] pry(main)* query: { | |
| [1] pry(main)* 'ItemId' => 'B00SX05RCU', | |
| [1] pry(main)* 'Condition' => 'All', | |
| [1] pry(main)* 'ResponseGroup' => 'OfferFull', | |
| [1] pry(main)* 'MerchantId'=> 'All' | |
| [1] pry(main)* } | |
| [1] pry(main)* ).to_h | |
| => {"ItemLookupResponse"=> | |
| {"OperationRequest"=> |
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
| self.top = bsr * 100 / category.products_on_sale_count |
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
| [27] pry(main)> >> AmzLookUp.item_lookup(query:{'ItemId' => 'B000CST01A' , 'ResponseGroup' => 'Large'}).to_h["ItemLookupResponse"]["Items"]["Item"]["SalesRank"] | |
| eGroup' => 'Large'}).to_h["ItemLookupResponse"]["Items"]["Item"]["SalesRank"] | |
| => nil |
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
| pry(main)> >> AmzLookUp.item_lookup(query:{'ItemId' => 'B0014XOS64' , 'ResponseGroup' => 'Large'}).to_h["ItemLookupResponse"]["Items"]["Item"]["SalesRank"] | |
| eGroup' => 'Large'}).to_h["ItemLookupResponse"]["Items"]["Item"]["SalesRank"] | |
| => "730" |
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
| >> AmzLookUp.item_lookup(query:{'ItemId' => 'B000CST01A' , 'ResponseGroup' => 'OfferFull'}).to_h["ItemLookupResponse"]["Items"]["Item"] | |
| eGroup' => 'OfferFull'}).to_h["ItemLookupResponse"]["Items"]["Item"] | |
| => {"ASIN"=>"B000CST01A", | |
| "OfferSummary"=> | |
| {"LowestNewPrice"=>{"FormattedPrice"=>"Too low to display"}, | |
| "LowestUsedPrice"=> | |
| {"Amount"=>"1515", "CurrencyCode"=>"USD", "FormattedPrice"=>"$15.15"}, | |
| "TotalNew"=>"24", | |
| "TotalUsed"=>"1", | |
| "TotalCollectible"=>"0", |
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
| pry(main)> >> AmzLookUp.item_lookup(query:{'ItemId' => 'B000CST01A' , 'ResponseGroup' => 'OfferFull'}).to_h["ItemLookupResponse"]["Items"]["Item"] | |
| eGroup' => 'OfferFull'}).to_h["ItemLookupResponse"]["Items"]["Item"] | |
| => {"ASIN"=>"B000CST01A", | |
| "OfferSummary"=> | |
| {"LowestNewPrice"=>{"FormattedPrice"=>"Too low to display"}, | |
| "LowestUsedPrice"=> | |
| {"Amount"=>"1515", "CurrencyCode"=>"USD", "FormattedPrice"=>"$15.15"}, | |
| "TotalNew"=>"24", | |
| "TotalUsed"=>"1", | |
| "TotalCollectible"=>"0", |
NewerOlder