openSea NFT SDK, how to buy and sell an NFT using the api - cryptocurrency

I recently stumbled upon the OpenSeaSDK and I want to use it to buy and sell NFTs using it. But I couldn't find a single request to sell or buy, everything is in the Order keyword and they don't show how to use it easily.
Can someone point me to a tutorial or maybe a simple script that I can understand this with?

This is definitely possible in OpenSea -- I'm doing it right now! Here's the code example I'm working off that has how to use the createSellOrder API to create NFT listings with a fixed price or for auctions (the word Order means marketplace listing in their SDK).
https://github.com/ProjectOpenSea/opensea-creatures/blob/3acbd744425c9136899cd105df9591f84f9cea88/scripts/sell.js

Related

Building an e-commerce store ( not on WP )

I will need to build an ecommerce store. I cant really wrap it around my head so far, but my main vision:
I would pay a monthly fee for a solution (something like woocommerce or shopify) so I can keep my products online in their database. Also this solution would have all the needed things bundled (like emails, order trackings, inventory, reimbursement). It would generate an email or other sign to my client when an order happens. I can imagine this happening on Wordpress with some pre-built templates.
Here comes the second part, because I would prefer to build the front-end on my own. Do You know any solution where I can simply communicate with GET / POST requests to the endpoints. So when webshop loads the products would be rendered with CSS to the users. In case of order (linked to STRIPE most probably) the required details (SKU, Quantity, user info) is saved and sent towards the solution.
How would You build it? What would You recommend as a service?
Regards,
Koppany
I'm much aware of one company known as Scale Labs which provides the cross-border e-commerce solutions and all kinds of services related the e-commerce sector.
You can also take the help of alternatives to Scale Labs which includes Pitney Bowes, Acommerce asia, etc but personally, I have gone through the Scale Labs. They helped me from scratch and now am earning a good profit from my store. Here's the link to their official website: Cross-Border e-commerce solutions.
If you are still confused then let me know. Thanks

Filemaker and Google Calendar. How do I make them communicate?

I am somewhat new to programming, have some experience with VBA, but thats it. I am learning Filemaker at the moment and I am getting along quite nicely. I want to let FM automaticly enter certain appointments and reminders into my google calendar.
Now, I know that the calendar has an API, and I know that that API is the interface with which I can communicate with it. But I am lacking a step in my knowledge ladder, because the documentation is thoroughly confusing. I need to know what to use, in order to tell the calendar what to enter where. Is it like some compound url I construct? How do I login?
These are all questions that pop up. I don't expect you to answer those, but rather if you can point me to the right tutorials I can read to get this knowledge.
I hope I didn't burden you guys too much.
thx in advance
I'm one of the authors of Zulu, a product we built specifically to sync FileMaker to Google Calendar, using a bi-directional sync. You can also turn Zulu into your own CalDAV server if you want to go that route.
Good luck!
Don't take this wrong but you may be biting off too much. I have been programming for 30 years and it took me a couple of days to gather the information needed to interact with the Google APIs (the OAuth2 authentication can be really confusing at first).
My sugestion would be to look at importing calendars into Google Calendars using either CSV (https://support.google.com/calendar/answer/45656) or ICS (https://support.google.com/calendar/answer/45656) format. You should be able to generate those formats with a little bit of Filemaker scripting.
But since you asked:
You need the OAUTH2 offline access, with a refresh token you would
store somewhere.
You will use the refresh token to get an auth token
You will make requests using HTTPS GETS or POSTS (see the Calendar
API explorer), with the auth token in the Authorization header.
Since there is no Google Calendar API for FileMaker :-), you would
have to know some details of the HTTP protocol to send a properly
formatted request, you will be working at a lower level than you
would be if using a Python, Java or .NET library.
You will get back
JSON responses which you will have to parse.
There are a couple of ways you can try to do this quickly:
Use Zapier (http://zpr.io/VhK - affiliate link) to create a webhook, then use a hidden webviewer in FileMaker to create the event. Try this as an example: http://zpr.io/fqg7
Use a plug-in, like this one https://www.feedzon.com/products/fmgcal/. I've never used that particular one before, but it looks fairly straightforward.
If you want to go whole-hog, it is also possible to use scripts in FileMaker to write to the Google Calendar API, but it's a lot more work. The plugin is probably the easiest route to go.
If you don't want to use a plugin, I would recommend starting with a Zapier webhook, as it greatly simplifies the work needed to hook into the Google Calendar API.

How do I get product information via Amazon's MWS API?

I'm trying to automate the addition to and management of our products on Amazon. Looking at the API documentation for the MWS API it doesn't look like there's a way to determine if a product has already been added to Amazon by another seller and if so what its attributes are.
We are building a new product database for all the products we sell and have a table specifically for Amazon attribute data fields (ASIN, etc.). If Product information is already on Amazon, we'd like to pull that data via API and store it to our own database as well.
If you attempt to add a product via CSV and that product already exists on Amazon (and your attributes are in any way different ("m" != "medium") you'll receive and error. In that case you can just piggy back that existing product information and just upload a CSV with your price and quantity for a particular ASIN/SKU/UPC. We'd like to do away with uploading CSV files and again, have our own product table for Amazon attributes.
Will I need to also leverage Amazon's Product Advertising API to determine this or can it be done via MWS?
The documentation for Amazon's APIs aren't exactly fantastic and it's been slow going trying to sort through it all.
We're working with Ruby.
Amazon's Merchant Web Services API is limited to your Merchant account. So the answer to your question is that yes you will need to use Amazon's Product Advertising API to get information about products that aren't already listed.
That being said you should be aware that there are new restrictions being placed on the Product Advertising API that will limit the number of calls that you can make on a daily basis to 2,000. In addition to this you will have to get an Associate ID that will be tied to your account and needs to be sent with any request.
Also, I find that the information collected using the Product Advertising API is sometimes out of sync with the site and have resorted to scraping the info from the site itself. This has more overhead but you can be assured that the data is current. Of course this is only useful if you already have an ASIN or are dealing strictly with books (which use the ISBN as an ASIN) or Music CDs (which I believe use the UPC as an ASIN).
The MWS Products API is where you will find this functionality. Specifically the GetMatchingProductForId operation.
http://docs.developer.amazonservices.com/en_US/products/Products_GetMatchingProductForId.html
(This API probably wasn't available at the time of the original question)

Code that can access all major online calendars?

I'm working on a service that needs to be able to read items from users' calendars. It needs to work whether the user is using Google Calendar, Exchange, Hotmail/Live, iCal, etc...
I want to do this (effectively):
calendar = Login(emailaddress, password); // Works for #hotmail.com, #gmail.com...
// For every item in the users' calendar extract the location of the meeting
for each (item in calendar)
location = item.Location;
I figure someone must have built some code that abstracts away the varied ways you login to these services and access the objects. But I haven't found anything yet. Any pointers would be appreciated. I don't really care what it's written in (Ruby, Python, C#, Java) as long as I can wrap it.
UPDATE: I've been able to get something working against the Google Calendar using the Google Calendar API. In the process I came across CalDAV and the fact that Google, Yahoo, and Apple support it. I'm going to focus on CalDAV for now, and then probably plumb in Hotmail/Live and Exchange later. I really only need the calendar event times and location so this should not be too challenging.
UPDATE 2: I have discovered DDay.iCal. I'd like to use this as my top level abstraction within my app. But I still have not found anything that will help me connect to, and interact with each of the popular mail systems. Nor have I found any code that shows how to layer DDay.ICal over CalDAV (which, theoretically, would give me Google, Yahoo, and Apple). Anyone?
There is a calendar REST API for Hotmail which is available in beta form as part of the developer preview of the Live SDK. This is also a beta interactive SDK for the REST API which you can try out at http://beta.isdk.dev.live.com. Just try out the query "/me/calendars"

commission junction and other affiliate network do they have sandbox? how to test drive? i am using popshops

i am developing an affiliate site.
it uses linkshare and commission junction.
it is for our client. so i do not have any account with any network or agent. either with popshops or the networks.
the client has registered with popshops to display merchants.
when users click links we need to know which user had purchased which product by sending some information to affiliate networks using the sid option.
every thing fine except a sandbox.
how do we do a test drive with link share and commission junction?
else we have to wait till an user purchases a product.
any suggestion and comments would be helpful.
They don't offer a sandbox, you will need to just know what the API results will be.
It is pretty well documented, but that's all they offer.
If you want, I recommend buying something from one of your affiliates and use that piece of info for testing. Most affiliates don't mind, and I have never found anything in a contract that mentions the affiliate using their own link.

Resources