Sidebar Menu

LM_GetListMembersByListID

Use this method to get all the members (contacts) in a list.

Syntax

LM_GetListMembersByListID(ListID, Licensekey)

Request Parameters

Parameter Name Description Data Type Required Sample Value
ListID

The ID of the list you want to get.

Integer True 937
Licensekey

Your license key, which is required to invoke this web service.

String True F01d89fd-5155-5455-5585-e84ab8de8591

Response

Returns: Array of LM_ListMembers objects

Code Samples

/* https://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LM_GetListMembersByListID.WSDL;

namespace LM_GetListMembersByListID
{
    class Program
    {
        static void Main(string[] args)
        {
            WSDL.PhoneNotify PN = new WSDL.PhoneNotify();

            Array List = PN.LM_GetListMembersByListID(12345, "YOUR LICENSE KEY");

            if (List.Length > 0)
            {
                foreach (WSDL.LM_ListMembers Members in List)
                {
                    Console.WriteLine(
                        "List Member ID: " + Members.ListMemberID + "\n" +
                        "Phone Number: " + Members.PhoneNumber + "\n" +
                        "Member Name: " + Members.FirstName + " " + Members.LastName + "\n\n"
                    );
                }
            }
            else Console.WriteLine("No members in list.");

            Console.ReadLine();
        }
    }
}
' https://ws.cdyne.com/notifyws/phonenotify.asmx?wsdl was added as a Web Reference and given the name WSDL

Imports LM_GetListMembersByListID.WSDL
Module Module1

    Sub Main()

        Dim PN As New PhoneNotify
        Dim List As Array

        List = PN.LM_GetListMembersByListID(12345, "YOUR LICENSE KEY")

        If (List.Length > 0) Then

            For Each Members As WSDL.LM_ListMembers In List

                Console.WriteLine("List Member ID: " & Members.ListMemberID & vbLf &
                                    "Phone Number: " & Members.PhoneNumber & vbLf &
                                    "Member Name: " & Members.FirstName & " " & Members.LastName  & vbLf)
            Next

        Else : Console.WriteLine("No members in list.")

        End If

        Console.ReadLine()

    End Sub

End Module
GET /NotifyWS/PhoneNotify.asmx/LM_GetListMembersByListID?ListID=string&Licensekey=string HTTP/1.1
Host: ws.cdyne.com
POST /NotifyWS/PhoneNotify.asmx/LM_GetListMembersByListID HTTP/1.1
Host: ws.cdyne.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ListID=string&Licensekey=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfLM_ListMembers xmlns="http://ws.cdyne.com/NotifyWS/">
  <LM_ListMembers>
    <ListMemberID>int</ListMemberID>
    <PhoneNumber>string</PhoneNumber>
    <ClientID>string</ClientID>
    <FirstName>string</FirstName>
    <LastName>string</LastName>
  </LM_ListMembers>
  <LM_ListMembers>
    <ListMemberID>int</ListMemberID>
    <PhoneNumber>string</PhoneNumber>
    <ClientID>string</ClientID>
    <FirstName>string</FirstName>
    <LastName>string</LastName>
  </LM_ListMembers>
</ArrayOfLM_ListMembers>
POST /NotifyWS/PhoneNotify.asmx HTTP/1.1
Host: ws.cdyne.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ws.cdyne.com/NotifyWS/LM_GetListMembersByListID"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <LM_GetListMembersByListID xmlns="http://ws.cdyne.com/NotifyWS/">
      <ListID>int</ListID>
      <Licensekey>string</Licensekey>
    </LM_GetListMembersByListID>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <LM_GetListMembersByListIDResponse xmlns="http://ws.cdyne.com/NotifyWS/">
      <LM_GetListMembersByListIDResult>
        <LM_ListMembers>
          <ListMemberID>int</ListMemberID>
          <PhoneNumber>string</PhoneNumber>
          <ClientID>string</ClientID>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
        </LM_ListMembers>
        <LM_ListMembers>
          <ListMemberID>int</ListMemberID>
          <PhoneNumber>string</PhoneNumber>
          <ClientID>string</ClientID>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
        </LM_ListMembers>
      </LM_GetListMembersByListIDResult>
    </LM_GetListMembersByListIDResponse>
  </soap:Body>
</soap:Envelope>
POST /NotifyWS/PhoneNotify.asmx HTTP/1.1
Host: ws.cdyne.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <LM_GetListMembersByListID xmlns="http://ws.cdyne.com/NotifyWS/">
      <ListID>int</ListID>
      <Licensekey>string</Licensekey>
    </LM_GetListMembersByListID>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <LM_GetListMembersByListIDResponse xmlns="http://ws.cdyne.com/NotifyWS/">
      <LM_GetListMembersByListIDResult>
        <LM_ListMembers>
          <ListMemberID>int</ListMemberID>
          <PhoneNumber>string</PhoneNumber>
          <ClientID>string</ClientID>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
        </LM_ListMembers>
        <LM_ListMembers>
          <ListMemberID>int</ListMemberID>
          <PhoneNumber>string</PhoneNumber>
          <ClientID>string</ClientID>
          <FirstName>string</FirstName>
          <LastName>string</LastName>
        </LM_ListMembers>
      </LM_GetListMembersByListIDResult>
    </LM_GetListMembersByListIDResponse>
  </soap12:Body>
</soap12:Envelope>