inwise - email marketing and newsletter software company
 
inwise Top Background
Arrow on Service

Groups Create Group

Operation Name: operation Name
Description: description

All actions require a valid user name and password using authenticaion header.
Show a raw xml example including the authentication header.

Service url:https://api.inwise.com/InwiseWebServices.asmx

Adding a reference to inwise web services

User Name:
Password:  
Folder id : 
New Group name: 
The service enables you to a new recipients group.
The returned value is the new group id.

Parameters:

  • int folderId
    The id of the folder in which the group will be created.
    The folder must be one of the folder you have already created on our system.
  • String groupName
    The name for the new group.
    The value must be a valid group name, some special characters may be declined by our system.
    The name must be unique, you can not have more than 1 groups with the same name.

Java Code:

//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();

//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);


//the id of the folder in which the group will be created
int folderId = 34;

//the display name for the new group
String groupName="recipients group 1";

//call the operation
int newGroupID = inwiseWebServicesSoap.groupsCreateGroup(folderId, groupName);

C# Code:

 //get a reference to the service

        InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();

 

        //fill the security header

        InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();

        header.username = "username";

        header.pass = "myPassword";

        ws.SecHeaderValue = header;//set credentials

 

        //the id of the folder in which the group will be created

        int folderId = 34;

 

        //the display name for the new group

        string groupName="recipients group 1";

 

        //call the operation

        int newGroupID = ws.Groups_CreateGroup(folderId, groupName);

VB Code:

'get a reference to the service

        Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()

 

        'fill the security header

        Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()

        header.username = "username"

        header.pass = "myPassword"

        ws.SecHeaderValue = header 'set credentials

 

        'the id of the folder in which the group will be created

        Dim folderId As Integer = 34

 

        'the display name for the new group

        Dim groupName As String = "recipients group 1"

 

        'call the operation

        Dim NewGroupID As Integer = ws.Groups_CreateGroup(folderId, groupName)




Home  |  About us  |  Products  |  Service  |  Partners  |  Forum  |  Email Marketing Terms  |  Support  |  Contact us
Terms & Conditions  |  Privacy Policy  |  Anti Spam Policy  |  Site Map
© 2008 inwise LTD. All rights reserved.