Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Walther Diechmann commented on how do I get past the localhost:3000/login step when building an app

$
0
0

allright - I understand - but should Product.all return nil (there are no products - but nil to me is like 'false' ?

[1] pry(#<ShopsController>)> ShopifyAPI::Base.site = "https://6f41f25185766a24a3854033cbdae840:870b5ea84dc6739310f9ce023ff12ea6@alco-18.myshopify.com/admin&quot;
=> "https://6f41f25185766a24a3854033cbdae840:870b5ea84dc6739310f9ce023ff12ea6@alco-18.myshopify.com/admin&quot;
[2] pry(#<ShopsController>)> ShopifyAPI::Product.all
=> nil

and shouldn't I at least be able to do

[7] pry(#<ShopsController>)> ShopifyAPI::Product.create( { "product" => { "title" => 'jack' } } )
ActiveResource::ResourceNotFound: Failed.  Response code = 404.  Response message = Not Found.
from /Users/walther/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/activeresource-4.0.0/lib/active_resource/connection.rb:144:in `handle_response'

I'm so sorry to be such a dumb f... :(

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>