Comments (13)
Hi, @b-carmichael -- thanks for this. We've had several people reach out about .NET examples, so I'm certainly interested in having some written. Unfortunately, we don't have any .NET programmers on staff, so it might take some time for us to develop these.
from apiv3-examples.
@toomuchpete -- So I was thinking, maybe we could help each other out still. Although I am far from the best .net developer out there I do have some experience.
A big part of my struggle is having a full understanding of MailChimp and what I'm even supposed to do. For example, right now all I want to do is do a basic send (first name, last name, email address) to MailChimp. MailChimp turns it into a "subscriber". Once this is successful, I would than like to do the reverse - receive a subscriber from MailChimp and parse the data to retrieve the first name,last name, and email address.
Obvioulsy this is the most basic integration anyone could ask for. I figure once Im able to do this, I'd be able to take it to the next level (i.e. send/receive a list).
So, the questions I'm sure your asking yourself is... How can you help me?
Well, I was hoping you can provide me with pseudo code for the most basic integration. For whatever reason, I'm missing this basic understanding (I blame it on the countless hours of reading/searching documentation - what i wouldn't do for a real example - I learn better from example).
Until next time - thank you,
@b-carmichael
from apiv3-examples.
Hey @b-carmichael! Thanks for your patience with our documentation and offer to help out!
In terms of examples, we have a couple of things that might be helpful. The python examples in this repo show basic interaction with the API. If you haven't seen them yet, the overview and how-to article on managing subscribers are pretty good.
In terms of the most basic pseudocode for subscribing someone to a list, here's how it works:
- Have the
list_id
already. - Make a POST request to
/3.0/lists/[list_id]/
with JSON that represents a subscriber. Minimally, that's{ "email_address": "[email protected]", "status": "subscribed"}
The other pieces of the puzzle: you'll need to use HTTP Basic Auth, which almost ever HTTP library supports directly. You'll also need to grab the datacenter component of the API key and put that into the request URL.
I hope that helps.
from apiv3-examples.
Hey @alaiacano -- I've made a note of your comment, but you're right that this is not the best place to go off on a long rant. Apologies if you're having trouble figuring out the API; we have new documentation in the works.
Until the new docs are complete, there's not a whole lot we can do to help developers who can't get their integrations working with the help of the existing docs, the playgorund, the fact that the API is RESTful, the JSON Schema files, and our support team.
If you have other feedback, our feedback form is the best place to leave it.
from apiv3-examples.
Hi @toomuchpete I was wondering if you have any updates on the C# example documentation. I am trying add a subscriber to a list but I'm struggling to implement it without any example code.
from apiv3-examples.
Hi @toomuchpete - I am finally able to retrieve data from PIv3. Maybe I should be a little more specific I am able to retrieve members/subscribers off of a list. Being I can do that, I will assume I'll be able to do more, if I would like.
My question is, as I try to send a subscriber back I am getting a 404 (not found) error. I am using "POST" and I am sending the minimal requirements of email_address and status (to be honest I've included, both, first and last name). I am using the same endpoint that I was receiving from, https://us11.api.mailchimp.com/3.0/Lists/LISTID/Members?apikey=APIKEY, am I missing something?
I assume this is obvious, but I substituted LISTID and APIKEY so I don't share that data to the World.
Cheers
from apiv3-examples.
Hey @oliverslade -- no updates as yet, StackOverflow does have some folks who have gotten it working though, so you might check there.
@b-carmichael -- 404 leads me to believe that you're not hitting a valid endpoint. I've not tested any of he endpoints with upper case letters, so I'd probably try https://us11.api.mailchimp.com/3.0/lists/LISTID/members -- you'll also need to use one of the supported authentication methods (like Basic Auth) rather than passing the API key in the querystring.
from apiv3-examples.
Thank you for all of your help, apparently I copied the wrong URL.
I am/was using Basic Authentication, with the following endpoint: https://us11.api.mailchimp.com/3.0/lists/2c3120392c/members
*** UPDATE ***
I now have 2-way communication!
Again thank you for your patience and assistance!
from apiv3-examples.
I have a quick question for you, I am working on a .NET wrapper, as I feel there is a great need for it. My question though, do you know where I can get a list of every available endpoint?
Obviously I need to build a wrapper that can meet everyone's need, not just my own. That being said, complete list of the available endpoints would be very helpful.
from apiv3-examples.
The way we do it internally is by crawling JSON Schema files:
https://api.mailchimp.com/schema/3.0/Root.json
The links
property will show not only sub-resources but also what can be done with the current resource. In each of those links targetSchema
describes the resource returned from that call, the schema
link describes what should be passed in (for methods without bodies, like GET, schema
describes the querystring).
from apiv3-examples.
HI toomuchpete, so I have an update for you.
A colleague and I are are creating a C# wrapper for MailChimp API V3.0. We are making progress. Although we have a few questions.
List Members Instance property --- >
"interests": {
"type": "object",
"title": "Subscriber Interests",
"description": "The key of this object's properties is the ID of the interest in question.",
"additionalProperties": {
"type": "boolean",
"title": "Interest Value",
"example": true,
"links": null
},
"links": null
},
In C# how is interests reperesented as a property. The additionalProperties part is the key of the interest. So I am a little confused as to how to do this.
Thanks
from apiv3-examples.
Hi toomuchpete,
I am having issues with creating a new file using the post request. I keep getting an errror saying it cannot accept a file without an extension. I converted the file to a base64 string and filled other necessary properties. Any help or if you could point me in the right direction that would be greatly appreciated. I have been making a .NET wrapper for Mailchimp and am feeling real good about it.
from apiv3-examples.
Hi @LiquidSean -- we really cannot offer support via Github issues. You'll need to reach out to our support team at apihelp at mailchimp dot com. Thank you.
from apiv3-examples.
Related Issues (20)
- Can I get my account's all mailchimp campaign's details hitting the api only one time instead of hitting the api for each of the campaign ? if yes, how ? only using mailchimp api v3.0 HOT 2
- InsecureRequestWarning and placing the api key HOT 1
- Please merge the PHP example code
- MailChimp AOI 3.0 wrapper HOT 1
- HTTP Code 409 for existing email, not 400
- 404 ? HOT 1
- Your Campaign is not ready to send
- Error 401 (Unauthorized) when sending a request for adding a new list member HOT 15
- Post requests "gets Required fields were not provided" HOT 3
- Issue in search campaign api HOT 1
- Campaign API not returning all campaigns HOT 1
- A foreign character é causes statusCode 400
- Member Create API with marketing_permissions params
- How can I get a subscriber with the top clicks for each campaign?
- 400 Bad Request deleting Cart lines HOT 5
- HttpCode 400 when upserting a member
- Automated- Cart abandoned emails in queue but not sending? HOT 3
- Is there a way to remove a Tag from mailchimp
- add tags to list member HOT 1
- Where interest categories can be managed under mailchimp account?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apiv3-examples.