# Wowza Streaming Engine Rest API - Create Advanced configuration with PHP library

**URL:** <https://community.wowza.com/t/wowza-streaming-engine-rest-api-create-advanced-configuration-with-php-library/92174>\
**Category:** Wowza Developer Dojo\
**Tags:** rest-api\
**Created:** [October 20, 2020, 8:59am UTC](https://community.wowza.com/t/wowza-streaming-engine-rest-api-create-advanced-configuration-with-php-library/92174 "2020-10-20T08:59:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lorenzo\_Nargiso](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@Lorenzo\_Nargiso](https://community.wowza.com/u/Lorenzo_Nargiso)\
**Post date:** [October 20, 2020, 8:59am UTC](https://community.wowza.com/t/wowza-streaming-engine-rest-api-create-advanced-configuration-with-php-library/92174/1 "2020-10-20T08:59:40Z")

</div>

Hello everyone.  
I’ve installed the wowza stream engine rest API library for PHP ([https://github.com/WowzaMediaSystems/wse-rest-library-php](https://github.com/WowzaMediaSystems/wse-rest-library-php))

What i need to do, basically, is create a publisher and then create an “advanced” stream target to send stream on a CDN.

Code to create a stream target is something like this:  
` $response = $sf->create('sourceStreamName', "entryName", "cupertino-akamai", WOWZA_HOST, WOWZA_USERNAME, WOWZA_PASSWORD, "streamName", "live", 1935);`

It works, and create an Akamai stream.  
But from API i can’t set the akamai.streamId.

The function used to create stream target get only this elements inside:

```
public function create(
$sourceStreamName = null, 
        $entryName = null,
        $profile = null, // destination host: cupertino-akamai
        $host = null,
        $userName = null,
        $password = null,
        $streamName = null,
        $application = null,
        $port = null 
)

```

There is a way to set “advanced” configuration directly from PHP using this library?

I noticed that there is an “advanced” class with some functions, but I’ve foiund only an old post (3 years ago) about how to use that, seems it’s changed from then.

---

<div class="post-metadata">

**Author:** ![Lorenzo\_Nargiso](https://avatars.discourse-cdn.com/v4/letter/l/58f4c7/32.png) [@Lorenzo\_Nargiso](https://community.wowza.com/u/Lorenzo_Nargiso)\
**Post date:** [October 23, 2020, 10:46am UTC](https://community.wowza.com/t/wowza-streaming-engine-rest-api-create-advanced-configuration-with-php-library/92174/2 "2020-10-23T10:46:24Z")

</div>

Solved by using directly cURL.
