Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* Fix for API error: The field 'calculated_price' cannot be written to. ... #102

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

poul-kg
Copy link

@poul-kg poul-kg commented Jun 21, 2014

...Please remove it from your request before trying again.

  • Fix for API error: The field 'primary_image' cannot be written to. Please remove it from your request before trying again.
  • Fix for API error: The field 'downloads' cannot be written to. Please remove it from your request before trying again.

…o. Please remove it from your request before trying again.

* Fix for API error: The field 'primary_image' cannot be written to. Please remove it from your request before trying again.

* Fix for API error: The field 'downloads' cannot be written to. Please remove it from your request before trying again.
@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 8df41ba on poul-kg:master into c659e67 on bigcommerce:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 8793a71 on poul-kg:master into c659e67 on bigcommerce:master.

* OAuth is used by default which required client_id + access_token + store_hash config options to be set
* Fixed bug when it was not possible to work with Product Custom Fields
@coveralls
Copy link

Coverage Status

Coverage decreased (-3.54%) when pulling df7619e on poul-kg:master into c659e67 on bigcommerce:master.

poul-kg added 2 commits July 1, 2014 11:15
* OAuth is used by default which required client_id + access_token + store_hash config options to be set
* Fixed bug when it was not possible to work with Product Custom Fields
@coveralls
Copy link

Coverage Status

Coverage decreased (-3.54%) when pulling 999b7f4 on poul-kg:master into c659e67 on bigcommerce:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.3%) when pulling 64af37c on poul-kg:master into c659e67 on bigcommerce:master.

@pankajEdreamz
Copy link

I need some suggestion about the webhook in php
How can i use web-hook for orders?
Is there necessary to create app in developers account?
In big-commerce where i put my web-hook call back url?

How can i use webhook? Also for multiple stores? Please help me.

@sudosoul
Copy link

sudosoul commented Jul 6, 2015

@pankajEdreamz
oAuth is required to use webhooks, so yes it is neccessary to create app in developers account. Assuming you have obtained the clients oauth token already and have authenticated, you can install a webhook simply like:

<?php
use Bigcommerce\Api\Client as bc;

# setup the webhook
$order_webhook = array(
  'scope' => "store/order/*",
  'destination' => $webhook_url, //the url to your webhook
    'is_active'   => true,
    'headers'     => array(
      'X-Custom-Auth' => $client_secret  //I validate the webhook request with the app client secret
    )
);

# install the webhook
bc::createResource('/hooks', $order_webhook);

# print to confirm 
print_r(bc::getCollection('/hooks');

@pankajEdreamz
Copy link

Hello Robert,

Thank you for your valuable reply.

I have some questions

  1. Now I have trail store account can i use this for webhook?
  2. Can i add multiple store accounts for one app?
  3. How can i create the relation about store and app? the partner id is the
    store's account id?
  4. You have any video or docs for app? its really help me.

@sudosoul
Copy link

sudosoul commented Jul 8, 2015

Hi @pankajEdreamz,

Most of your questions about creating a public app can be answered here:
https://developer.bigcommerce.com/api/using-oauth-intro

But in an attempt to answer:

  1. Yes, you can use webhooks on your trial store as long as the app has been installed on that trial store.
  2. Yes, you can install the app on multiple stores ONLY IF the store owner account is the same as the app developer account.
  3. Once you have your app registered at https://developer.bigcommerce.com, the app will appear in the app store, under "My Draft Apps" (top left corner). Your client ID is assigned to you once you create the draft app.
  4. I recommend reading the official documentation here: https://developer.bigcommerce.com/api/using-oauth-intro
    If you still have specific questions with code example, feel free to ping me here (@MullinsR), or on StackOverflow(@sudo soul).

Cheers,
Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants