GithubHelp home page GithubHelp logo

shopify's Introduction

shopify's People

Contributors

sandeepshetty avatar

Stargazers

Cam Kemshal-Bell avatar Sabin Shrestha avatar Hugo Epinosa avatar  avatar Nafeeur Rahman avatar  avatar Matthew Uffalussy avatar The Beard Struggle General avatar Thomas Borowski avatar Viral avatar Manobala S avatar Dima Minka avatar  avatar  avatar Cosmo Borsky avatar Hemratna Bhimani avatar  avatar Onnay Okheng avatar Horatiu avatar  avatar Brian Christmas avatar John Robert Boyer avatar Tao avatar Dariusz Prząda avatar Jono Layton avatar Easton Elliott avatar Varun Jain  avatar Brandon Ferrell avatar Yaroslav avatar Luca Micheli avatar Dennis Mathenge avatar Matt Neill avatar Robbie Sherrard avatar . avatar Sadaf Siddiqui avatar Vo Duy Tuan avatar Li Nguyen avatar Amber Dean avatar Mattia Zoccarato avatar Nick Aggelakis avatar Oleg Poludnenko avatar Resa Rahman avatar Jonathan Larkin avatar Gustavo Manolo avatar Jimmy Forrester-Fellowes avatar Khairul Anwar avatar Jonathan Nicol avatar Ken Verhaegen avatar Beomseok Seo avatar Theron Smith avatar  avatar Shefik avatar  avatar Flo Becker avatar Evo Stamatov avatar Francois Bouyer avatar John Boyer avatar Peter Bui avatar Vaclav Synacek avatar Skyler Slade avatar Tidal Wave Agency avatar Cuong Nguyen avatar

Watchers

 avatar Cuong Nguyen avatar Marcin Antczak avatar Sadaf Siddiqui avatar Luigi avatar James Cloos avatar james brian avatar Gary Solomon avatar  avatar Fazal Ashfaq avatar

shopify's Issues

Signature parameter no longer send

My code was working properly and somehow Shopify stopped to send signature parameter. This will lead to:

Notice: Undefined index: signature in **/vendor/phpish/shopify/shopify.php on line 21

in function is_valid_request while validating request. As stated here https://help.shopify.com/api/guides/authentication/oauth#verification says: The signature attribute is deprecated due to vulnerabilities in how the signature is generated.

So it is possible they removed it in previous days from Shopify? Any suggestions?

Not working properly

Sometimes it works and I get a response from Shopify but maximum times I get no response or 504 Gateway Timeout. But it works perfectly in the postman.

GET /admin/script_tags.json HTTP/1.1
Host: refiral5-2.myshopify.com
X-Shopify-Access-Token: 64cbba144bc3cb166da91be13103f785

Integrating With Webhooks

As requested from the Shopify forum, I'm seeking help in integrating this Shopify API with Webhooks. I created a Private App for my store and built a Customer Creation API call using this code. I thought I'd point the Webhook to a public URL on my personal domain (http://korynorthrop.com), but aside from that I don't understand how to get it all working. How do I get this Webhook to be recognized by my store so that when a new customer is created it will send a response to the public URL declared in the script?

<?

    session_start();

    require __DIR__.'/vendor/autoload.php';
    use phpish\shopify;

    require __DIR__.'/conf.php';

    $shopify = shopify\client(SHOPIFY_SHOP, SHOPIFY_APP_API_KEY, SHOPIFY_APP_PASSWORD, true);

    try
    {
        # Making an API request can throw an exception
        $customers = $shopify('POST /admin/webhooks.json', array(), array
        (
            'webook' => array 
            (
                "topic": "customers/create",
                "address": "http://korynorthrop.com/path/to/public/handler", 
                "format": "json"
            )

        ));

        print_r($customers);
    }
    catch (shopify\ApiException $e)
    {
        # HTTP status code was >= 400 or response contained the key 'errors'
        echo $e;
        print_R($e->getRequest());
        print_R($e->getResponse());
    }
    catch (shopify\CurlException $e)
    {
        # cURL error
        echo $e;
        print_R($e->getRequest());
        print_R($e->getResponse());
    }

?>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.