Product Subscription in API Connect v2018 - api

How can I check that how many applications have subscribed to a product in a catalog ?
One way is to check the subscription of all application in that catalog however in my case there are so many application that why it's very time consuming to use this approach. Any feasible approach for this case ?

There are two ways that I know of.
One is to enable catalog search:
Login to API Manager and navigate to your provider org. Append "/ff" to the URL and hit enter. Enable the search feature. Once enabled, you'll see a search bar at the top of the screen. Search for your product, making sure you set options for the correct catalog. Click on the "Catalog Products" tab and you will see your product and subscription count. Click on the ellipsis and you can choose the option to view all subscriptions.
The second way is through the APIC rest API. If you want to go down that route, use their API Explorer here: https://apic-api.apiconnect.ibmcloud.com/v2018/

Related

How do I access Shopify data without advanced account?

All I'm wanting to do is track sales of certain products from a certain date. My company is wanting to add a banner to track sales goals for raising money for charities. So basically, we'd tag a few products as being part of that goal, set a goal, and then need to update the goal progress by a certain amount every time a sale is made on one of those products. As far as I can tell, without access to Shopify's analytics API, this is not possible. How can I do this?
What you want to build is perfectly possible. However, you need to generate Private App Credentials, so you can use Shopify API. It doesn't matter if you have an account by yourself, someone else can follow these steps and send you the credentials your way.
If you don't actually need to modify anything through the API, you could have them set a webhook (Settings -> Notifications -> Webhook) on Order Creation (or similar) that posts to your server and you can check what product got sold and see if it has got the tag.
The "easy" way to do this is to create an app that receives order webhooks and can check on tagged products and keep a sum of target items sold.
Then the app should have use a script tag to insert a simple script with the current value into the web page at a configured place by css selector
OR the app could update one or more snippet files that you could include until the promo is done.
I'd tend to go with the script tag option since that's a bit more flexible and you should be able to change your theme when the promo is over to report results without having to touch the app again.

Billing has not been enabled for this project

I enabled free trial last night but I'm still unable to create a data set to save a query into a table. Anyone know why?
I have the same problem, trial was enabled but I couldn't add dataset in BigQuery. The solution for me was to go to any storage service like BigTable and click Enable Billing there.
Enable billing and you are good to go:
https://console.developers.google.com/billing
I received the 'enable billing' even though billing was enabled. In my case I needed to enable the BigQuery API. I'm not sure why the error message didn't specify this directly, it seems as though it should have.
Once you have a valid billing account setup, you need to also ensure your project that has the BigQuery access also is connected to that billing account.
For me the problem was solved by going to Billing > Projects and then selecting a newly created organization, under which the project I was trying to get BigQuery working for was, and then I needed to attach the project to that account.
So be sure to check the tab "My projects" in the Billing section, and also the dropdown menu inside that tab called "Select an organization". When you find the right project, click the "Actions" button (i.e. the three dots) and select "Change billing account" and "Set account".

Brand filtering on category pages

In Bigcommerce, is it possible to add brand filtering to category pages?
The current options appear to be that you can select from "all brands" by visiting the brands page, or you could use the search engine to narrow your results but you're forced to type a keyword or space. I want to offer a way to narrow the products by brand for the specific category the user is viewing.
I've spoken to tech support and they've informed me that this is NOT an option through the control panel and would have to be done through the API.
In my attempt to do this with the API however, it doesn't appear there is anyway to dynamically identify which category a user viewing. Outside of hard-coding a template for each individual category, how can this be accomplished?
I was informed by API support that this is NOT possible. Their recommendation was to submit the idea to the support team for future implementation, and that I might be able to accomplish it through a combination of javascript and screen scraping.

Clickbank - Create products for testing (in Sandbox)

I am new to Clickbank.
I want to try out the API for the same.
But I am stuck in between.
Can anyone guide me through the steps to successfully create a product.
I am getting some errors
You must make a test purchase before submiting this request.
A footer disclaimer is required for all Pitch and Thank You pages.
Also wanted to know, like how can I setup the sandbox account?
Please help me out.
Thanks in advance.
This question was asked a very long time ago but I just happened across it and know the answers.
First, however I think anyone starting on ClickBank, technical or otherwise, will benefit from the following: https://www.clickbank.com/launch-checklist/
Now, to answer the question(s):
Test Purchase:
• Can't do this without creating a product first
• To create a product you do the following:
Login to the account
Click: Vendor Settings -> My Products
On this page locate the list of ADD NEW buttons & Click Product
The product editor pretty well walks you through the process
AND now for the test purchase.
That process is described here: https://support.clickbank.com/hc/en-us/articles/360036958431-How-do-I-test-a-payment-link-
Footer/disclaimer:
This is what is known as the ClickBank Trust Badge currently, (not sure about 9years ago).
It's a little element that you copy and paste into your webpage, after configuring what you want it to look like & where you want it to be, from the available options.
To find and set it up:
Login to the account
Click Vendor Settings -> My Site
Scroll down to the section with the title "ClickBank Trust Badge - Injection Code"
If you like the default setup you can copy what's in the Javascript Snippet field
If you want to change where it's located and colors click the Configure Settings button (not going to describe everything here as it's pretty straight forward as well)
ClickBank APIs
Last, you mentioned wanting to use the ClickBank API, which I happen to know very well. However, the documentation for it is also actually pretty good so let me start off with that:
General ClickBank API documentation
Additionally each APIs primary endpoint is self documenting. Additionally this documentation tends to be the most relevant for a programmer
Example of self documenting endpoint: https://api.clickbank.com/rest/1.3/orders2
So, it's worth noting the following that are required to use the API:
You must have an HTTP header of "Authorization" and it must be set to both of the API keys for an account.
Both keys refers to the API- "Clerk Key" as well as the DEV- "Developer Key"
Enter them both, separated by a colon ":" as the value of the Authorization key with the DEV- key first (DEV-A23478C...:API-IA23456...)
You must also use the correct HTTP request type for the query you are wanting to make (the only two that are utilized are GET and POST)
Examples:(NOTE: ACCOUNT_NAME_HERE is the ClickBank "nickname" or account name)
Single transaction: https://api.clickbank.com/rest/1.3/orders2/RECEIPT_NUMBER_HERE
List transactions by date range and specific account: https://api.clickbank.com/rest/1.3/orders2/list?vendor=ACCOUNTNAME_HERE&startDate=2021-12-11&endDate=2021-12-14
Count of transactions by date range: https://api.clickbank.com/rest/1.3/orders2/count/?vendor=ACCOUNT_NAME_HERE&startDate=2022-01-01&endDate=2022-01-01
Monetary value of transactions by date range: https://api.clickbank.com/rest/1.3/quickstats/count/?account=ACCOUNT_NAME_HERE&startDate=2022-02-01&endDate=2022-02-10
Sending shipping data for physical products (POST): https://api.clickbank.com/rest/1.3/shipping2/shipnotice/4NVXUFNW?item=2&date=2018-08-14&carrier=UPS&tracking=1NH323452345WODFS&comments=Test%20again%20comment%20with%20spaces10%20receipt=4NVXUFNW

Can one cx or cref ID be used to call Google custom search across multiple API keys?

I'm investigating the Google custom search API and I'm a bit confused about how to go about it.
I've been scraping google.com?q=my+search+phrase in my app and it works great. However, I want to use the custom API to stay compliant with Google TOS, so I'm looking to port my app to the custom search API.
Assuming that my app will ship commercially, and the end user will be required to obtain an API key themselves (which the app will feed in as a variable before doing an ajax/rest data call), is there a general cx or cref ID that can be used across all API clients?
Or, does each client have to obtain their own unique cx or cref ID as well?
I want to make it as simple as possible on the end user. All these IDs and APIs will become an issue for less technical users.
The sole purpose of my app is to pull the top 10 organic URLs for any given search.
CS is unique id, see http://code.google.com/apis/customsearch/v1/using_rest.html#cx
You can find it at your customer search control panel, right above "save changes" button.