Use AddSubscriberToList Method
Use the AddSubscriberToList helper method to add a subscriber to a list (EmailAddress, Lists, SubscriberKey). This method applies to new subscribers in an account or existing subscribers added to an additional list.
Ruby
require 'fuelsdk'
myclient= FuelSDK::Client.new {'client' => { 'id' => CLIENTID, 'secret' => SECRET }}
response = myclient.AddSubscriberToList("example@example.com", [12121212])
p responsePHP
require('ET_Client.php');
$myclient = new ET_Client();
$response = $myclient->AddSubscriberToList("example@example.com", array(12121212));
print_r($response);Python
import ET_Client
myclient = ET_Client.ET_Client()
response = myclient .AddSubscriberToList("example@example.com", [12121212])
print responseCSharp
Using FuelSDK;
ET_Client myclient = new ET_Client();
FuelReturn response = myclient.AddSubscribersToList("example@example.com", new List<int>() { 12121212 });
Console.WriteLine("Helper Status: " + response.Status.ToString());Java
Documentation for the Fuel Java SDK can be found at http://salesforce-marketingcloud.github.io/FuelSDK-Java/