public function addTags($id, array $tags, $identifyBy = 'email')
    {
        $request = new Request('subscribers');
        $request->setQuery(['identified_by' => $identifyBy]);
        $request->setIdParam($id);
        $request->addSubresource(['name' => 'tags']);
        $request->setParams(['tags' => $tags]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();

    }
public function addTags($id, array $tags, $identifyBy = 'email')
    {
        $request = new Request('subscribers');
        $request->setQuery(['identified_by' => $identifyBy]);
        $request->setIdParam($id);
        $request->addSubresource(['name' => 'tags']);
        $request->setParams(['tags' => $tags]);

        $response = $this->client->post($request);

        $this->assertSuccessResponse($response);

        return $response->getData();

    }
public function addTags ( $ id , array $ tags , $ identifyBy = 'email' ) { $ request = new Request ( 'subscribers' ) ; $ request -> setQuery ( [ 'identified_by' => $ identifyBy ] ) ; $ request -> setIdParam ( $ id ) ; $ request -> addSubresource ( [ 'name' => 'tags' ] ) ; $ request -> setParams ( [ 'tags' => $ tags ] ) ; $ response = $ this -> client -> post ( $ request ) ; $ this -> assertSuccessResponse ( $ response ) ; return $ response -> getData ( ) ; }
Adds tags to subscriber

@link https://rule.se/apidoc/#subscribers-tags-post

@param $id
@param array $tags
@param string $identifyBy
@return array
@throws \Exception
Adds tags to subscriber