Is there a simple piece of code I can use to get the amount of discord servers/guilds my program is connected to?
Yes, there is a simple piece of code. It would be really helpful to see what you have already tried and where in your code you are trying to get the amount but here is what it would look like:
Console.WriteLine(myDiscordClient.Guilds.Count());
It will print to console, the amount of guilds your bot is in.
Related
So I have a client that wants to do a Google Ad campaign for certain locations. From what we gathered, you can set up location of interest and pass on a parameter {loc_physical_ms} that can be used to get some details based on that ID. My question is, how do I access that info? Is it by using an API? I did looked at the reference here:
https://developers.google.com/adwords/api/docs/appendix/geotargeting
But it is not explained how I can use that ID on my website to get something like the ZIP code and city of the click. I been looking around, but to no avail. Any suggestion is welcome.
Thanks in advance!
Ok, found the solution. So for anyone that may come across this, that link I have above provides you with a CSV with the latest Geo Target list. I was under the impression that Google would provide an API for us to use, but that is not the case here. You will have to import that data into your database, and then use it from there. So once you have that data in your database, you can then just make a query that will use the ID from the parameter {loc_physical_ms} from the database as reference for your query.
I've been for months trying to get more complex type of POST requests to go through and somehow I've never been able. Those like creating a product or a brand are always easy, but when u get to creating complex-rules and modifiers your API seems to close all the doors...
I'm trying to create a Complex-Rule for changing the image when two or more option values are selected. I tried every possible combination of what I think could be the needed values and nothing. Is it possible that I'm misinterpreting what the array of inline_response_200_19_conditions are and how to use them?
This is the response I get every time...
Any help here would be very much appreciated and would save me from doing more than 25.000 combinations and image uploads by hand... :/
Thanks a lot!
I am trying to show all conversations that have been created, even if a message was not sent. However, I can't for the life of me figure it out. I've hit a million dead ends. Does anyone know if this is even possible?
Perhaps a more specific question that would help me answer it is: is it possible to get an LYRConversation object of an existing conversation with just the user id of the other participant?
After going through their docs for hours I finally found this:
If you create a conversation the recipient won't see it until the first message is sent. If you want to be able to create a conversation without any messages, use the Platform API.
Source and link to information about the Platform API
Seems to me this should be better documented, but there it is. Hope this helps someone!
I am trying to get some information about the post people do in google plus. In particular I am interested in the "+1"'s.
Either from the google api or directly from the google plus web site you can get the total count and name of the people who did "+1". But, I would be interested in getting the time or timestamp of the "+1"'s. Does anyone knows if it is possible or how can I do that?
Help is always appreciated
Thanks to all,
As you can see at https://developers.google.com/+/api/latest/activities, the only data we return for a +1 is a list of the +1-ers, as well as the total number of people who +1'ed the item you are looking at.
If you would like to request additional data, please file a feature request in our Issue Tracker: https://code.google.com/p/google-plus-platform/issues/list. It would really help if you could be as detailed as possible in the type of data you would like to see and how you would ideally use that data.
If you're dealing with your own website and only care about +1s for pages on your own domain, you could use Google Analytic's social information to see how +1s change over time. You wouldn't get information about who did the +1ing.
this question is a tad more on the technical side, but I hope it can be easilly solved.
You see, my problem here is the following:
I have a Gateway for sending SMS, however, I want those SMS to show a name instead of the number (company/Bank name for instance) like some Banks/providers have over here.
However I can't seem to find any sort of documentation on how to achieve this.
Is there any sort of way to achieve what I want?